We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c4d9e2 + a8c7252 commit 9e81754Copy full SHA for 9e81754
test/basic.jl
@@ -937,8 +937,12 @@ end
937
@test String(sym) == string(Char(0xdcdb))
938
@test Meta.lower(Main, sym) === sym
939
res = string(Meta.parse(string(Char(0xdcdb)," = 1"),1,raise=false)[1])
940
- @test startswith(res, "\$(Expr(:error, \"invalid character \\\"\\udcdb\\\"")
941
- @test endswith(res, "\"))")
+ @static if VERSION ≥ v"1.5.0-DEV.460"
+ @test res == "\$(Expr(:error, \"invalid UTF-8 sequence\"))"
942
+ else
943
+ @test startswith(res, "\$(Expr(:error, \"invalid character \\\"\\udcdb\\\"")
944
+ @test endswith(res, "\"))")
945
+ end
946
end
947
948
@testset "invalid code point" begin
0 commit comments