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
  • Loading branch information
KristofferC committed Jun 25, 2017
1 parent f030049 commit 65784d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/int.jl
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 65784d7

Please sign in to comment.