diff options
author | Yusuke Endoh <[email protected]> | 2024-04-04 13:23:52 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2024-04-04 13:29:41 +0900 |
commit | fc67091fc8dc4c7122499cd0d287cd34ff01bf30 (patch) | |
tree | 6e4aadc2cc82605701d7bcfd42b743628a22b7a4 /test/ruby/test_string.rb | |
parent | f057741c5dd6fdc25926c2f16fc6e936eeec5fd1 (diff) |
Prevent "ambiguous first argument" warnings
Diffstat (limited to 'test/ruby/test_string.rb')
-rw-r--r-- | test/ruby/test_string.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 0dae1c5a8e..9ff3791e7d 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -3620,11 +3620,11 @@ CODE assert_predicate chilled_string.clone, :frozen? # @+ treat the original string as frozen - assert_not_predicate +chilled_string, :frozen? + assert_not_predicate(+chilled_string, :frozen?) assert_not_same chilled_string, +chilled_string # @- the original string as mutable - assert_predicate -chilled_string, :frozen? + assert_predicate(-chilled_string, :frozen?) assert_not_same chilled_string, -chilled_string end |