diff options
| author | Étienne Barrié <etienne.barrie@gmail.com> | 2025-12-04 17:25:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-04 11:25:45 -0500 |
| commit | 3730022787086852fa2fbc94ffda6ec8c8fbc0b3 (patch) | |
| tree | 42d18e2bbd32d15022834a333e5556688bcfb7f6 | |
| parent | 29a12297c3594ed24102d62e16dfd6d4e5e328f3 (diff) | |
Remove mismatched indentations warning (#15410)
| -rw-r--r-- | test/ruby/test_zjit.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index 6609bb2461..00550bbe20 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -1081,20 +1081,20 @@ class TestZJIT < Test::Unit::TestCase end def test_opt_duparray_send_include_p_redefined - assert_compiles '[:true, :false]', %q{ - class Array - alias_method :old_include?, :include? - def include?(x) - old_include?(x) ? :true : :false - end + assert_compiles '[:true, :false]', %q{ + class Array + alias_method :old_include?, :include? + def include?(x) + old_include?(x) ? :true : :false end + end - def test(x) - [:y, 1].include?(x) - end - [test(1), test("n")] - }, insns: [:opt_duparray_send], call_threshold: 1 - end + def test(x) + [:y, 1].include?(x) + end + [test(1), test("n")] + }, insns: [:opt_duparray_send], call_threshold: 1 + end def test_opt_newarray_send_hash assert_compiles 'Integer', %q{ |
