Skip to content

Commit

Permalink
Fix chop test
Browse files Browse the repository at this point in the history
Since JuliaLang/julia#31312, chop("") returns "" instead of throwing.
  • Loading branch information
nalimilan committed Apr 19, 2019
1 parent 6a232bc commit 6a410d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/08_string.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ using CategoricalArrays
@test join([v1, "a"]) == "a"
@test join([v1, "a"], v2) == "caféa"

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

Expand Down

0 comments on commit 6a410d8

Please sign in to comment.