Skip to content

Commit 6a410d8

Browse files
committed
Fix chop test
Since JuliaLang/julia#31312, chop("") returns "" instead of throwing.
1 parent 6a232bc commit 6a410d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/08_string.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ using CategoricalArrays
225225
@test join([v1, "a"]) == "a"
226226
@test join([v1, "a"], v2) == "caféa"
227227

228-
if VERSION >= v"0.7.0-DEV.3688" # Version known to throw an erro
229-
@test_throws BoundsError chop(v1) == ""
228+
if VERSION >= v"1.0.4" # Previous versions throw a BoundsError
229+
@test chop(v1) == ""
230230
end
231231
@test chop(v2) == "caf"
232232

0 commit comments

Comments
 (0)