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.
2 parents 8be3e11 + 6595706 commit a50b25bCopy full SHA for a50b25b
test/data_utils.jl
@@ -34,12 +34,11 @@ 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
42
- @test_broken int(x[2]) isa UInt32
+ @test int(x[2]) isa UInt32
43
@test int(x[1], type=Int64) == 1
44
@test int(x[1], type=Int64) isa Int64
45
0 commit comments