We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccf7fd7 commit b090ba0Copy full SHA for b090ba0
1 file changed
test/runtests.jl
@@ -11,6 +11,8 @@ using Test, IntegerMathUtils
11
@test iroot(T(10000), 4) == T(10)
12
@test iroot(T(10001), 4) == T(10)
13
@test iroot(T(9999), 4) == T(9)
14
+ @test iroot(T(-8), 3) == T(-2)
15
+ @test_throws DomainError iroot(T(-8), 4)
16
end
17
@test iroot(big(23)^50, 50) == big(23)
18
@test iroot(big(23)^50 + 1, 50) == big(23)
0 commit comments