Skip to content

Commit

Permalink
Add test for and close #3596, Int128 bit shifts broken
Browse files Browse the repository at this point in the history
only a problem on 32 bit (actually has had a workaround in place
for some time that should now probably be removed)

add a test for repr(::Int128)
  • Loading branch information
tkelman committed Jan 18, 2016
1 parent 783e566 commit 4b681c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/int.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,7 @@ end
@test widemul(false, false) == false
@test widemul(false, 3) == 0
@test widemul(3, true) == widemul(true, 3) == 3

# issue #3596
@test Int128(1)<<0 == 1
@test repr(Int128(1)<<1) == "2"

0 comments on commit 4b681c2

Please sign in to comment.