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
4
keywords = [" Strings" ]
5
5
license = " MIT"
6
6
uuid = " e79e7a6a-7bb1-5a4d-9d64-da657b06f53a"
7
- version = " 1.0.1 "
7
+ version = " 1.0.2 "
8
8
9
9
[deps ]
10
10
Unicode = " 4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
@@ -26,7 +26,7 @@ test = ["Test", "Random"]
26
26
[compat ]
27
27
julia = " ^1.0.0"
28
28
ModuleInterfaceTools = " ≥ 1.0.0"
29
- MurmurHash3 = " ≥ 1.0.0 "
29
+ MurmurHash3 = " ≥ 1.0.3 "
30
30
StrAPI = " ≥ 1.0.0"
31
31
ChrBase = " ≥ 1.0.0"
32
32
CharSetEncodings = " ≥ 1.0.0"
Original file line number Diff line number Diff line change 966
966
end
967
967
end
968
968
969
+
969
970
@testset " CESU-8 sequences" begin
970
971
# # UTF-8 tests
971
972
974
975
for hichar = 0xd800 : 0xdbff , lochar = 0xdc00 : 0xdfff
975
976
seq = string (Char (hichar), Char (lochar))
976
977
# 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
978
981
# Unsafe conversions return invalid strings as Text*Str
979
982
@test typeof (unsafe_str (seq)) == Text1Str
980
983
# With accept_surrogates flag, return converted to valid string (_UTF32Str)
985
988
986
989
end
987
990
991
+
988
992
@testset " Reverse of UTF8" begin
989
993
# Reverse of UTF8Str
990
994
@test reverse (UTF8Str (" " )) == " "
You can’t perform that action at this time.
0 commit comments