From 7f163ba20ecbd4d7abf190d05927088bd73e28fc Mon Sep 17 00:00:00 2001 From: angusmoore Date: Tue, 4 Jul 2017 08:45:44 +1000 Subject: [PATCH] Add extra test from #22613 for floatrange. --- test/ranges.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ranges.jl b/test/ranges.jl index 33f8bfa18c5a3..956e58317ae09 100644 --- a/test/ranges.jl +++ b/test/ranges.jl @@ -366,6 +366,7 @@ end # Inexact errors on 32 bit architectures. #22613 @test first(linspace(log(0.2), log(10.0), 10)) == log(0.2) @test last(linspace(log(0.2), log(10.0), 10)) == log(10.0) +@test length(Base.floatrange(-3e9, 1.0, 1, 1.0)) == 1 # linspace & ranges with very small endpoints for T = (Float32, Float64)