Skip to content

Commit a49bdeb

Browse files
committed
Skip test on 32-bit
1 parent 5651562 commit a49bdeb

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["ScottPJones <[email protected]>"]
44
keywords = ["Strings"]
55
license = "MIT"
66
uuid = "e79e7a6a-7bb1-5a4d-9d64-da657b06f53a"
7-
version = "1.0.1"
7+
version = "1.0.2"
88

99
[deps]
1010
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
@@ -26,7 +26,7 @@ test = ["Test", "Random"]
2626
[compat]
2727
julia = "^1.0.0"
2828
ModuleInterfaceTools = "≥ 1.0.0"
29-
MurmurHash3 = "≥ 1.0.0"
29+
MurmurHash3 = "≥ 1.0.3"
3030
StrAPI = "≥ 1.0.0"
3131
ChrBase = "≥ 1.0.0"
3232
CharSetEncodings = "≥ 1.0.0"

test/basic.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,6 +966,7 @@ end
966966
end
967967
end
968968

969+
969970
@testset "CESU-8 sequences" begin
970971
## UTF-8 tests
971972

@@ -974,7 +975,9 @@ end
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)
@@ -985,6 +988,7 @@ end
985988

986989
end
987990

991+
988992
@testset "Reverse of UTF8" begin
989993
# Reverse of UTF8Str
990994
@test reverse(UTF8Str("")) == ""

0 commit comments

Comments
 (0)