We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be3e11 commit 2d9268eCopy full SHA for 2d9268e
test/data_utils.jl
@@ -34,8 +34,7 @@ end
34
end
35
@testset "int-full" begin
36
setfull()
37
- M.int(::FI, x::CategoricalValue; kw...) =
38
- collect(1:length(levels(x.pool)))[x.level]
+ M.int(::FI, x::CategoricalValue) = CategoricalArrays.refcode(x)
39
x = categorical(['a','b','a'])
40
@test int(x[1]) == 0x01
41
@test int(x[2]) == 0x02
0 commit comments