mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00: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
@ -120,6 +120,7 @@ tests = [
|
||||
[ 'dup', %q{ x = y = true; x }, ],
|
||||
[ 'dupn', %q{ Object::X ||= true }, ],
|
||||
[ 'reverse', %q{ q, (w, e), r = 1, [2, 3], 4; e == 3 }, ],
|
||||
[ 'swap', %q{ !!defined?([[]]) }, ],
|
||||
[ 'swap', <<-'},', ], # {
|
||||
x = [[false, true]]
|
||||
for i, j in x # here
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user