aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_numeric.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_numeric.rb')
-rw-r--r--test/ruby/test_numeric.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb
index 44c12ede9c..25351163b7 100644
--- a/test/ruby/test_numeric.rb
+++ b/test/ruby/test_numeric.rb
@@ -279,6 +279,8 @@ class TestNumeric < Test::Unit::TestCase
assert_step [1], [1, 10, 2**32]
assert_step [1], [1, to: 10, by: 2**32]
+ assert_step [], [2, 1, 3]
+ assert_step [], [-2, -1, -3]
assert_step [3, 3, 3, 3], [3, by: 0], inf: true
assert_step [10], [10, 1, -(2**32)]