322
322
@test occursin (r" ^@doc \( macro with \d + method[s]?\) $" , repr (" text/plain" , getfield (Base, Symbol (" @doc" ))))
323
323
324
324
method_defs_lineno = @__LINE__ () + 1
325
- Base . Symbol () = throw (ErrorException (" 1" ))
326
- (:: Symbol )() = throw (ErrorException (" 2" ))
325
+ String () = throw (ErrorException (" 1" ))
326
+ (:: String )() = throw (ErrorException (" 2" ))
327
327
EightBitType () = throw (ErrorException (" 3" ))
328
328
(:: EightBitType )() = throw (ErrorException (" 4" ))
329
329
EightBitTypeT () = throw (ErrorException (" 5" ))
@@ -338,10 +338,10 @@ let err_str,
338
338
sp = Base. source_path ()
339
339
sn = basename (sp)
340
340
341
- @test sprint (show, which (Symbol , Tuple{})) ==
342
- " Symbol () in $curmod_str at $sp :$(method_defs_lineno + 0 ) "
343
- @test sprint (show, which (:a , Tuple{})) ==
344
- " (::Symbol )() in $curmod_str at $sp :$(method_defs_lineno + 1 ) "
341
+ @test sprint (show, which (String , Tuple{})) ==
342
+ " String () in $curmod_str at $sp :$(method_defs_lineno + 0 ) "
343
+ @test sprint (show, which (" a " , Tuple{})) ==
344
+ " (::String )() in $curmod_str at $sp :$(method_defs_lineno + 1 ) "
345
345
@test sprint (show, which (EightBitType, Tuple{})) ==
346
346
" $(curmod_prefix) EightBitType() in $curmod_str at $sp :$(method_defs_lineno + 2 ) "
347
347
@test sprint (show, which (reinterpret (EightBitType, 0x54 ), Tuple{})) ==
@@ -359,10 +359,10 @@ let err_str,
359
359
@test repr (" text/plain" , FunctionLike ()) == " (::$(curmod_prefix) FunctionLike) (generic function with 1 method)"
360
360
@test repr (" text/plain" , Core. arraysize) == " arraysize (built-in function)"
361
361
362
- err_str = @except_stackframe Symbol () ErrorException
363
- @test err_str == " Symbol () at $sn :$(method_defs_lineno + 0 ) "
364
- err_str = @except_stackframe :a () ErrorException
365
- @test err_str == " (::Symbol )() at $sn :$(method_defs_lineno + 1 ) "
362
+ err_str = @except_stackframe String () ErrorException
363
+ @test err_str == " String () at $sn :$(method_defs_lineno + 0 ) "
364
+ err_str = @except_stackframe " a " () ErrorException
365
+ @test err_str == " (::String )() at $sn :$(method_defs_lineno + 1 ) "
366
366
err_str = @except_stackframe EightBitType () ErrorException
367
367
@test err_str == " $(curmod_prefix) EightBitType() at $sn :$(method_defs_lineno + 2 ) "
368
368
err_str = @except_stackframe i () ErrorException
0 commit comments