Skip to content

Commit

Permalink
Named testsets to make failures easier to identify
Browse files Browse the repository at this point in the history
  • Loading branch information
NHDaly committed Jun 19, 2024
1 parent 4a53703 commit 27a3e0f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/fldmod-by-const_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ end
big_mul = big * x
# This might overflow: ...
mul = fd * x
# ... so we truncate big to the same size
@test big_mul.i % T == mul.i % T
@testset "$fd * $x" begin
# ... so we truncate big to the same size
@test big_mul.i % T == mul.i % T
end
end
@testset for v in typemin(FD) : eps(FD) : typemax(FD)
test_multiplies_correctly(v, typemin(T))
Expand All @@ -95,8 +97,10 @@ end
big_mul = big * x
# This might overflow: ...
mul = fd * x
# ... so we truncate big to the same size
@test big_mul.i % T == mul.i % T
@testset "$fd * $x" begin
# ... so we truncate big to the same size
@test big_mul.i % T == mul.i % T
end
end
vals = FD[
typemin(FD), typemax(FD),
Expand Down

0 comments on commit 27a3e0f

Please sign in to comment.