diff options
| author | Kevin Menard <kevin@nirvdrum.com> | 2025-11-20 17:04:45 -0500 |
|---|---|---|
| committer | Max Bernstein <tekknolagi@gmail.com> | 2025-11-20 14:35:09 -0800 |
| commit | fb28d4748dc96d581592b0d4c186ca0a8d49fa26 (patch) | |
| tree | e313a4c9029a4cc22072e44174d9ddd0c11d2f40 | |
| parent | 447989e5980510b0bcde34c58363b425c0e78224 (diff) | |
ZJIT: Change the output on redefined method tests to verify the new definition is used
| -rw-r--r-- | test/ruby/test_zjit.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb index 4e962ac1f5..7472ff7715 100644 --- a/test/ruby/test_zjit.rb +++ b/test/ruby/test_zjit.rb @@ -1041,11 +1041,11 @@ class TestZJIT < Test::Unit::TestCase end def test_opt_newarray_send_include_p_redefined - assert_compiles '[true, false]', %q{ + assert_compiles '[:true, :false]', %q{ class Array alias_method :old_include?, :include? def include?(x) - old_include?(x) + old_include?(x) ? :true : :false end end @@ -1066,11 +1066,11 @@ class TestZJIT < Test::Unit::TestCase end def test_opt_duparray_send_include_p_redefined - assert_compiles '[true, false]', %q{ + assert_compiles '[:true, :false]', %q{ class Array alias_method :old_include?, :include? def include?(x) - old_include?(x) + old_include?(x) ? :true : :false end end |
