Skip to content

Commit

Permalink
Fix tests on old Julia
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Dec 28, 2024
1 parent e8b5b88 commit 329ce5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/15_extras.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ end
@test_throws ArgumentError cut([fill(1, 10); 4], 2)
@test_throws ArgumentError cut([fill(1, 10); 4], 3)
x = cut([fill(1, 10); 4], 2, allowempty=true)
@test only(unique(x)) == "Q2: [1.0, 4.0]"
@test unique(x) == ["Q2: [1.0, 4.0]"]
x = cut([fill(1, 10); 4], 3, allowempty=true)
@test only(unique(x)) == "Q3: [1.0, 4.0]"
@test unique(x) == ["Q3: [1.0, 4.0]"]
@test levels(x) == ["Q1: (1.0, 1.0)", "Q2: (1.0, 1.0)", "Q3: [1.0, 4.0]"]

x = cut([fill(1, 5); fill(4, 5)], 2)
Expand Down

0 comments on commit 329ce5a

Please sign in to comment.