Skip to content

Commit 311e593

Browse files
committed
Fix test
1 parent 6ef6662 commit 311e593

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/15_extras.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ const ≅ = isequal
9393
@test levels(x) == ["b", "a"]
9494

9595
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]"]
9797
@test isa(x, CategoricalMatrix{Union{String, T}})
9898
@test isordered(x)
99-
@test levels(x) == ["[-2.1, 3)", "[3, 12]"]
99+
@test levels(x) == ["[-2.13, 3)", "[3, 12.5]"]
100100

101101
labels = 0:2:8
102102
x = @inferred cut(Vector{Union{T, Int}}(1:8), 0:2:10, labels=labels)
@@ -419,7 +419,7 @@ end
419419
5.349085340927365e11, 1.3471583229449602e11, 6.538893396835975e11, 4.826316844547661e11,
420420
8.803607035550856e11, 1.8174694671397316e10, 1.6709745443719125e11, 3.2050577954311835e11,
421421
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]"]
423423

424424
end
425425

0 commit comments

Comments
 (0)