aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-06 17:15:30 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-06 17:15:30 +0000
commit3a4eb4dd39b4a6687068de391c8543008c3f977c (patch)
tree0bbaca48523124f4815108648916f2676f4e18dd /test
parentc2dc0dc1ce7ae4340966118994e04d4dd3fb0c3f (diff)
downloadruby-3a4eb4dd39b4a6687068de391c8543008c3f977c.tar.gz
* numeric.c (int_dotimes): Support for Integer#times.size
[Feature #6636] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_enumerator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb
index fe00aa7e57..2c5158e726 100644
--- a/test/ruby/test_enumerator.rb
+++ b/test/ruby/test_enumerator.rb
@@ -506,6 +506,7 @@ class TestEnumerator < Test::Unit::TestCase
def test_size_for_loops
assert_equal Float::INFINITY, loop.size
+ assert_equal 42, 42.times.size
end
def test_size_for_each_slice