aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_enumerator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_enumerator.rb')
-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