Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
test elementwise leftshift on BigInt by vector of ints (JuliaLang#22524)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored and DrTodd13 committed Jun 26, 2017
1 parent 60f32e3 commit 2fa4aa4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/int.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,10 @@ for T in [Base.BitInteger_types..., BigInt],
U in [Base.BitInteger_types..., BigInt]
@test typeof(rand(U(0):U(127)) % T) === T
end


@testset "left shift with Vector{Int} on BigInt-scalar #13832" begin
x = BigInt(1) .<< [1:70;]
@test x[end] == 1180591620717411303424
@test eltype(x) == BigInt
end

0 comments on commit 2fa4aa4

Please sign in to comment.