repo.or.cz
/
ruby-80x24.org.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
* 2022-01-18 [ci skip]
[ruby-80x24.org.git]
/
test
/
-ext-
/
test_enumerator_kw.rb
blob
fb47c2bcf8efc993830dc0d885477a063430a222
1
require 'test/unit'
2
require '-test-/enumerator_kw'
3
4
class TestEnumeratorKw < Test::Unit::TestCase
5
def test_enumerator_kw
6
o = Object.new
7
o.extend Bug::EnumeratorKw
8
assert_equal([nil, [], {:a=>1}, o], o.m(a: 1) { |*a| a })
9
assert_equal([nil, [[], {:a=>1}, o], nil, o], o.m(a: 1).each { |*a| a })
10
end
11
end