Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHnt committed Feb 1, 2024
1 parent 8d0b9d1 commit 073c505
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/interval_tests/consistency.jl
Original file line number Diff line number Diff line change
Expand Up @@ -344,24 +344,24 @@
@test x != y
@test x < y
@test isfinite(x)
@test isnan(x)
@test !isnan(x)
@test isinteger(x)
@test x == 1
@test isone(x)
@test !iszero(x)

@test_throws ArgumentError isdisjoint(x, y)
@test_throws ArgumentError issubset(x, y)
@test_throws ArgumentError issetequal(x, y)
@test_throws ArgumentError x y
@test_throws ArgumentError isempty(x)
@test_throws ArgumentError !isdisjoint(x, y)
@test_throws ArgumentError !issubset(x, y)
@test_throws ArgumentError !issetequal(x, y)
@test_throws ArgumentError !(x y)
@test_throws ArgumentError !isempty(x)

x, y = interval(2, 3), interval(1)

@test_throws ArgumentError x != y
@test_throws ArgumentError x < y
@test_throws ArgumentError isfinite(x)
@test_throws ArgumentError isnan(x)
@test_throws ArgumentError !isnan(x)
@test_throws ArgumentError isinteger(x)
@test_throws ArgumentError x == 1
@test_throws ArgumentError isone(x)
Expand Down

0 comments on commit 073c505

Please sign in to comment.