File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ authors = ["ScottPJones <scottjones@alum.mit.edu>"]
44keywords = [" Strings" ]
55license = " MIT"
66uuid = " e79e7a6a-7bb1-5a4d-9d64-da657b06f53a"
7- version = " 1.0.1 "
7+ version = " 1.0.2 "
88
99[deps ]
1010Unicode = " 4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
@@ -26,7 +26,7 @@ test = ["Test", "Random"]
2626[compat ]
2727julia = " ^1.0.0"
2828ModuleInterfaceTools = " ≥ 1.0.0"
29- MurmurHash3 = " ≥ 1.0.0 "
29+ MurmurHash3 = " ≥ 1.0.3 "
3030StrAPI = " ≥ 1.0.0"
3131ChrBase = " ≥ 1.0.0"
3232CharSetEncodings = " ≥ 1.0.0"
Original file line number Diff line number Diff line change 966966 end
967967end
968968
969+
969970@testset " CESU-8 sequences" begin
970971 # # UTF-8 tests
971972
974975 for hichar = 0xd800 : 0xdbff , lochar = 0xdc00 : 0xdfff
975976 seq = string (Char (hichar), Char (lochar))
976977 # Normal conversion throws an error
977- @test_throws StringError utf8 (seq)
978+ if sizeof (Int) != 4 # Avoid horrible 1000x performance issue on 32-bit platforms
979+ @test_throws StringError utf8 (seq)
980+ end
978981 # Unsafe conversions return invalid strings as Text*Str
979982 @test typeof (unsafe_str (seq)) == Text1Str
980983 # With accept_surrogates flag, return converted to valid string (_UTF32Str)
985988
986989end
987990
991+
988992@testset " Reverse of UTF8" begin
989993 # Reverse of UTF8Str
990994 @test reverse (UTF8Str (" " )) == " "
You can’t perform that action at this time.
0 commit comments