summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-06 17:11:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-06 17:11:50 +0000
commitbdc00ba604b74646fbf551a544d973466ce39558 (patch)
tree89f1305b01dd6a98f5db131b1a235dcd767bd4ad /test
parenta06fc80da67570a53c4790f7d7e053222aeef2a5 (diff)
* bignum.c (rb_cmpint): moved from compar.c, to check bignum
zero. * range.c (range_step): add step for each iteration if begin and end are numeric. [ruby-core:15990] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_range.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb
index b8cd5a7416..09781dd407 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -114,12 +114,6 @@ class TestRange < Test::Unit::TestCase
(0..10).step(2) {|x| a << x }
assert_equal([0, 2, 4, 6, 8, 10], a)
- o = Object.new
- def o.to_int; 2; end
- a = []
- (0..10).step(o) {|x| a << x }
- assert_equal([0, 2, 4, 6, 8, 10], a)
-
assert_raise(ArgumentError) { (0..10).step(-1) { } }
assert_raise(ArgumentError) { (0..10).step(0) { } }