Skip to content

Commit 7f163ba

Browse files
author
angusmoore
committed
Add extra test from #22613 for floatrange.
1 parent 4de1a51 commit 7f163ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/ranges.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ end
366366
# Inexact errors on 32 bit architectures. #22613
367367
@test first(linspace(log(0.2), log(10.0), 10)) == log(0.2)
368368
@test last(linspace(log(0.2), log(10.0), 10)) == log(10.0)
369+
@test length(Base.floatrange(-3e9, 1.0, 1, 1.0)) == 1
369370

370371
# linspace & ranges with very small endpoints
371372
for T = (Float32, Float64)

0 commit comments

Comments
 (0)