Skip to content

Commit 564d841

Browse files
committed
Add more DIvideError tests.
1 parent 1399e4f commit 564d841

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/FixedDecimal.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,13 @@ end
843843

844844
@test_throws DivideError rdiv_with_overflow(typemax(T), T(0))
845845
@test_throws DivideError rdiv_with_overflow(typemin(T), T(0))
846+
@test_throws DivideError rdiv_with_overflow(eps(T), T(0))
847+
@test_throws DivideError rdiv_with_overflow(-eps(T), T(0))
848+
849+
@test_throws DivideError fld_with_overflow(typemax(T), T(0))
850+
@test_throws DivideError fld_with_overflow(typemin(T), T(0))
851+
@test_throws DivideError fld_with_overflow(eps(T), T(0))
852+
@test_throws DivideError fld_with_overflow(-eps(T), T(0))
846853
end
847854
end
848855

0 commit comments

Comments
 (0)