1
0
Fork 0
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:
Nikita Vasilevsky 2021-10-29 12:31:31 -04:00 committed by Koichi Sasada
parent 5a3b2e6141
commit c1c13c58ee
Notes: git 2021-11-09 16:57:05 +09:00

View file

@ -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