@@ -93,10 +93,10 @@ const ≅ = isequal
93
93
@test levels (x) == [" b" , " a" ]
94
94
95
95
x = @inferred cut (Matrix {Union{Float64, T}} ([- 1.1 3.0 ; 1.456 10.394 ]), [- 2.134 , 3.0 , 12.5 ])
96
- @test x == [" [-2.1 , 3)" " [3, 12]" ; " [-2.1 , 3)" " [3, 12]" ]
96
+ @test x == [" [-2.13 , 3)" " [3, 12.5 ]" ; " [-2.13 , 3)" " [3, 12.5 ]" ]
97
97
@test isa (x, CategoricalMatrix{Union{String, T}})
98
98
@test isordered (x)
99
- @test levels (x) == [" [-2.1 , 3)" , " [3, 12]" ]
99
+ @test levels (x) == [" [-2.13 , 3)" , " [3, 12.5 ]" ]
100
100
101
101
labels = 0 : 2 : 8
102
102
x = @inferred cut (Vector {Union{T, Int}} (1 : 8 ), 0 : 2 : 10 , labels= labels)
419
419
5.349085340927365e11 , 1.3471583229449602e11 , 6.538893396835975e11 , 4.826316844547661e11 ,
420
420
8.803607035550856e11 , 1.8174694671397316e10 , 1.6709745443719125e11 , 3.2050577954311835e11 ,
421
421
1.6134999167460663e11 , 7.396308745225059e11 ], 3 )
422
- @test levels (x) == [" [1.4e-07, 0.25 )" , " [0.25 , 1.8e +10)" , " [1.8e +10, 8.8e+11]" ]
422
+ @test levels (x) == [" [1.4e-07, 0.254 )" , " [0.254 , 1.82e +10)" , " [1.82e +10, 8.8e+11]" ]
423
423
424
424
end
425
425
0 commit comments