Skip to content

Commit

Permalink
Test for JuliaLang#5550.
Browse files Browse the repository at this point in the history
  • Loading branch information
mschauer committed Jan 26, 2014
1 parent 3304e86 commit 47f5ee9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/random.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,8 @@ if sizeof(Int32) < sizeof(Int)
r = rand(int32(-1):typemax(Int32))
@test typeof(r) == Int32
@test -1 <= r <= typemax(Int32)
else
@test typeof(rand(typemin(Int32):typemax(Int32))) == Int32
end


0 comments on commit 47f5ee9

Please sign in to comment.