Skip to content

Commit

Permalink
Further orkarounds for string changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Dec 16, 2017
1 parent f9e3a86 commit d9a7650
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/08_string.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ using Compat
using Compat.Test
using CategoricalArrays

if VERSION >= v"0.7.0-DEV.2915"
using Unicode
end

@testset "AbstractString operations on values of CategoricalPool{String}" begin
pool = CategoricalPool(["", "café"])

Expand Down Expand Up @@ -55,7 +59,11 @@ using CategoricalArrays
@test v2[2] === 'a'
@test v2[4] === 'é'
@test_throws BoundsError v1[1]
@test_throws UnicodeError v2[5]
if VERSION >= v"0.7.0-DEV.2949"
@test_throws StringIndexError v2[5]
else
@test_throws UnicodeError v2[5]
end

@test codeunit(v2, 2) === 0x61
@test codeunit(v2, 5) === 0xa9
Expand Down

0 comments on commit d9a7650

Please sign in to comment.