From afb66b7c1a3a435af4022e30b006a4ecbba233a4 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Sat, 19 May 2018 00:18:19 +0300 Subject: [PATCH] Test whether we can iterate over the full inclusive step range of the largest bits integer type --- test/ranges.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/ranges.jl b/test/ranges.jl index 23b45ba068034..6fab035136cda 100644 --- a/test/ranges.jl +++ b/test/ranges.jl @@ -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)