Skip to content

Commit 2d9268e

Browse files
committed
use refcode in place of obsolete CategoricalArrays level property
1 parent 8be3e11 commit 2d9268e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/data_utils.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ end
3434
end
3535
@testset "int-full" begin
3636
setfull()
37-
M.int(::FI, x::CategoricalValue; kw...) =
38-
collect(1:length(levels(x.pool)))[x.level]
37+
M.int(::FI, x::CategoricalValue) = CategoricalArrays.refcode(x)
3938
x = categorical(['a','b','a'])
4039
@test int(x[1]) == 0x01
4140
@test int(x[2]) == 0x02

0 commit comments

Comments
 (0)