Skip to content

Commit

Permalink
Test whether we can iterate over the full inclusive step range of the…
Browse files Browse the repository at this point in the history
… largest bits integer type
  • Loading branch information
haampie committed May 19, 2018
1 parent 192343b commit afb66b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/ranges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,13 @@ end
end
@test s == 256

s = 0
for i = typemin(UInt):one(UInt8):typemax(UInt)
i == 10 && break
s += 1
end
@test s == 10

# loops past typemax(Int)
n = 0
s = Int128(0)
Expand Down

0 comments on commit afb66b7

Please sign in to comment.