Skip to content

Commit 447989e

Browse files
nirvdrumtekknolagi
authored andcommitted
ZJIT: Update test names to use the same convention as the HIR tests
1 parent 36f1ab9 commit 447989e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/ruby/test_zjit.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ def test = Foo.new
983983
}, insns: [:opt_new]
984984
end
985985

986-
def test_opt_new_with_redefinition
986+
def test_opt_new_with_redefined
987987
assert_compiles '"foo"', %q{
988988
class Foo
989989
def self.new = "foo"
@@ -1040,7 +1040,7 @@ def test(x)
10401040
}, insns: [:opt_newarray_send], call_threshold: 1
10411041
end
10421042

1043-
def test_opt_newarray_send_include_p_redefinition
1043+
def test_opt_newarray_send_include_p_redefined
10441044
assert_compiles '[true, false]', %q{
10451045
class Array
10461046
alias_method :old_include?, :include?
@@ -1065,7 +1065,7 @@ def test(x)
10651065
}, insns: [:opt_duparray_send], call_threshold: 1
10661066
end
10671067

1068-
def test_opt_duparray_send_include_p_redefinition
1068+
def test_opt_duparray_send_include_p_redefined
10691069
assert_compiles '[true, false]', %q{
10701070
class Array
10711071
alias_method :old_include?, :include?
@@ -1090,7 +1090,7 @@ def test(x)
10901090
}, insns: [:opt_newarray_send], call_threshold: 1
10911091
end
10921092

1093-
def test_opt_newarray_send_hash_redefinition
1093+
def test_opt_newarray_send_hash_redefined
10941094
assert_compiles '42', %q{
10951095
Array.class_eval { def hash = 42 }
10961096
@@ -1108,7 +1108,7 @@ def test(a,b) = [a,b].max
11081108
}, insns: [:opt_newarray_send], call_threshold: 1
11091109
end
11101110

1111-
def test_opt_newarray_send_max_redefinition
1111+
def test_opt_newarray_send_max_redefined
11121112
assert_compiles '[60, 90]', %q{
11131113
class Array
11141114
alias_method :old_max, :max
@@ -2488,7 +2488,7 @@ def entry(flag)
24882488
}, call_threshold: 2
24892489
end
24902490

2491-
def test_bop_redefinition
2491+
def test_bop_redefined
24922492
assert_runs '[3, :+, 100]', %q{
24932493
def test
24942494
1 + 2
@@ -2499,7 +2499,7 @@ def test
24992499
}, call_threshold: 2
25002500
end
25012501

2502-
def test_bop_redefinition_with_adjacent_patch_points
2502+
def test_bop_redefined_with_adjacent_patch_points
25032503
assert_runs '[15, :+, 100]', %q{
25042504
def test
25052505
1 + 2 + 3 + 4 + 5
@@ -2512,7 +2512,7 @@ def test
25122512

25132513
# ZJIT currently only generates a MethodRedefined patch point when the method
25142514
# is called on the top-level self.
2515-
def test_method_redefinition_with_top_self
2515+
def test_method_redefined_with_top_self
25162516
assert_runs '["original", "redefined"]', %q{
25172517
def foo
25182518
"original"
@@ -2535,7 +2535,7 @@ def foo
25352535
}, call_threshold: 2
25362536
end
25372537

2538-
def test_method_redefinition_with_module
2538+
def test_method_redefined_with_module
25392539
assert_runs '["original", "redefined"]', %q{
25402540
module Foo
25412541
def self.foo = "original"

0 commit comments

Comments
 (0)