Skip to content

Commit 27a3e0f

Browse files
committed
Named testsets to make failures easier to identify
1 parent 4a53703 commit 27a3e0f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/fldmod-by-const_tests.jl

+8-4
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ end
6767
big_mul = big * x
6868
# This might overflow: ...
6969
mul = fd * x
70-
# ... so we truncate big to the same size
71-
@test big_mul.i % T == mul.i % T
70+
@testset "$fd * $x" begin
71+
# ... so we truncate big to the same size
72+
@test big_mul.i % T == mul.i % T
73+
end
7274
end
7375
@testset for v in typemin(FD) : eps(FD) : typemax(FD)
7476
test_multiplies_correctly(v, typemin(T))
@@ -95,8 +97,10 @@ end
9597
big_mul = big * x
9698
# This might overflow: ...
9799
mul = fd * x
98-
# ... so we truncate big to the same size
99-
@test big_mul.i % T == mul.i % T
100+
@testset "$fd * $x" begin
101+
# ... so we truncate big to the same size
102+
@test big_mul.i % T == mul.i % T
103+
end
100104
end
101105
vals = FD[
102106
typemin(FD), typemax(FD),

0 commit comments

Comments
 (0)