mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add test for [ruby-dev:31507].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a25fbe3b3e
commit
6527bcfe30
1 changed files with 8 additions and 1 deletions
|
@ -6,4 +6,11 @@
|
|||
# massign
|
||||
assert_equal '[0,1,{2=>3}]', '[0,*[1],2=>3]', "[ruby-dev:31592]"
|
||||
|
||||
|
||||
assert_equal 'ok', %q{
|
||||
def m()
|
||||
yield :ng
|
||||
end
|
||||
r = :ok
|
||||
m {|(r)|}
|
||||
r
|
||||
}, '[ruby-dev:31507]'
|
||||
|
|
Loading…
Reference in a new issue