mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add one more test example for swap instruction
This commit is contained in:
parent
5a3b2e6141
commit
c1c13c58ee
Notes:
git
2021-11-09 16:57:05 +09:00
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ tests = [
|
||||||
[ 'dup', %q{ x = y = true; x }, ],
|
[ 'dup', %q{ x = y = true; x }, ],
|
||||||
[ 'dupn', %q{ Object::X ||= true }, ],
|
[ 'dupn', %q{ Object::X ||= true }, ],
|
||||||
[ 'reverse', %q{ q, (w, e), r = 1, [2, 3], 4; e == 3 }, ],
|
[ 'reverse', %q{ q, (w, e), r = 1, [2, 3], 4; e == 3 }, ],
|
||||||
|
[ 'swap', %q{ !!defined?([[]]) }, ],
|
||||||
[ 'swap', <<-'},', ], # {
|
[ 'swap', <<-'},', ], # {
|
||||||
x = [[false, true]]
|
x = [[false, true]]
|
||||||
for i, j in x # here
|
for i, j in x # here
|
||||||
|
|
Loading…
Reference in a new issue