diff options
author | Akinori MUSHA <[email protected]> | 2022-12-21 19:13:15 +0900 |
---|---|---|
committer | Akinori MUSHA <[email protected]> | 2022-12-21 19:13:15 +0900 |
commit | cc4c28ec2efa71b1c8afb4ce11409ad7b5ca1c95 (patch) | |
tree | b1ff353f37906ebda486d474d817958ddb2019a5 /test/ruby/test_enumerator.rb | |
parent | 308ccbaeb2c1c0e78d59c0411ddbeede8d2324f0 (diff) |
Make Enumerartor.product return nil when called with a block
Diffstat (limited to 'test/ruby/test_enumerator.rb')
-rw-r--r-- | test/ruby/test_enumerator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index c9ffd95977..010c1e4969 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -964,7 +964,7 @@ class TestEnumerator < Test::Unit::TestCase # with a block elts = [] ret = Enumerator.product(1..3) { |x| elts << x } - assert_instance_of(Enumerator::Product, ret) + assert_equal(nil, ret) assert_equal [[1], [2], [3]], elts assert_equal elts, Enumerator.product(1..3).to_a |