From 4e3f4b9c7d7b97b9552b26893945a995acab13f0 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Sun, 25 Jun 2017 11:14:15 -0700 Subject: [PATCH] test elementwise leftshift on BigInt by vector of ints (#22524) (cherry picked from commit 65784d73ac1c78410b40b7028584533e4ff3b2fd) --- test/int.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/int.jl b/test/int.jl index ad2e9a1e8f1f2..d89811e3fcf61 100644 --- a/test/int.jl +++ b/test/int.jl @@ -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