Skip to content

Commit

Permalink
Add one more test example for swap instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
nvasilevski committed Oct 29, 2021
1 parent 30942c1 commit c3a664e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bootstraptest/test_insns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class X; def to_a; ['u']; end; end
[ '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
Expand Down

0 comments on commit c3a664e

Please sign in to comment.