Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faster digits(::BigInt) #37075

Merged
merged 14 commits into from
Aug 18, 2020
Prev Previous commit
Next Next commit
more tests
  • Loading branch information
stevengj committed Aug 17, 2020
commit ed4b9b0e61f7e2a11a80742bd6f79702aa4e2991
4 changes: 3 additions & 1 deletion test/gmp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,10 @@ end
@testset "digits"
n = Int64(2080310129088201558)
N = big(n)
for base in (2,7,10,11,16,30,50,62,64,100), pad in (0,1,10,100)
for base in (2,7,10,11,16,30,50,62,64,100), pad in (0,1,10,100)c
stevengj marked this conversation as resolved.
Show resolved Hide resolved
@test digits(n; base, pad) == digits(N; base, pad)
@test digits(-n; base, pad) == digits(-N; base, pad)
@test digits!(Vector{Int}(undef, pad), n; base) == digits!(Vector{Int}(undef, pad), N; base)
end
end

Expand Down