aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_float.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r--test/ruby/test_float.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb
index d16384898d..1935cfdd52 100644
--- a/test/ruby/test_float.rb
+++ b/test/ruby/test_float.rb
@@ -520,6 +520,8 @@ class TestFloat < Test::Unit::TestCase
(1.0..12.7).step(1.3).each do |n|
assert_operator(n, :<=, 12.7)
end
+
+ assert_equal([5.0, 4.0, 3.0, 2.0], 5.0.step(1.5, -1).to_a)
end
def test_step_excl