Skip to content

Commit b090ba0

Browse files
authored
tests
1 parent ccf7fd7 commit b090ba0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ using Test, IntegerMathUtils
1111
@test iroot(T(10000), 4) == T(10)
1212
@test iroot(T(10001), 4) == T(10)
1313
@test iroot(T(9999), 4) == T(9)
14+
@test iroot(T(-8), 3) == T(-2)
15+
@test_throws DomainError iroot(T(-8), 4)
1416
end
1517
@test iroot(big(23)^50, 50) == big(23)
1618
@test iroot(big(23)^50 + 1, 50) == big(23)

0 commit comments

Comments
 (0)