Skip to content

Commit 031543c

Browse files
committed
Make sure coefficient doesn't overflow
1 parent 8e7b4ec commit 031543c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ end
7474
for j in i:length(CONTAINER_TYPES)
7575
f = FixedPointDecimals.max_exp10(CONTAINER_TYPES[j])
7676
powt = FixedPointDecimals.coefficient(FD{T, f})
77+
@test powt % 10 == 0
7778
@test checked_mul(widen(powt), typemax(T)) == widemul(powt, typemax(T))
7879
@test checked_mul(widen(powt), typemin(T)) == widemul(powt, typemin(T))
7980
end

0 commit comments

Comments
 (0)