Skip to content

Commit

Permalink
test elementwise leftshift on BigInt by vector of ints (#22524)
Browse files Browse the repository at this point in the history
(cherry picked from commit 65784d7)
  • Loading branch information
KristofferC authored and ararslan committed Sep 15, 2017
1 parent 8ff738e commit 2a1b86e
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 @@ -207,3 +207,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 2a1b86e

Please sign in to comment.