ruby-changes:69664
From: Nikita <ko1@a...>
Date: Tue, 9 Nov 2021 16:56:59 +0900 (JST)
Subject: [ruby-changes:69664] c1c13c58ee (master): Add one more test example for swap instruction
https://git.ruby-lang.org/ruby.git/commit/?id=c1c13c58ee From c1c13c58eebb7441d27536a32d73380d165d6eda Mon Sep 17 00:00:00 2001 From: Nikita Vasilevsky <nikita.vasilevsky@s...> Date: Fri, 29 Oct 2021 12:31:31 -0400 Subject: Add one more test example for swap instruction --- bootstraptest/test_insns.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb index 31fdc29d024..91fba9b011b 100644 --- a/bootstraptest/test_insns.rb +++ b/bootstraptest/test_insns.rb @@ -120,6 +120,7 @@ tests = [ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_insns.rb#L120 [ '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 -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/