Skip to content

Commit

Permalink
Add extra test from #22613 for floatrange.
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmoore committed Jul 3, 2017
1 parent 4de1a51 commit 7f163ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/ranges.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7f163ba

Please sign in to comment.