Prevent "ambiguous first argument" warnings

This commit is contained in:
Yusuke Endoh 2024-04-04 13:23:52 +09:00
parent f057741c5d
commit fc67091fc8
2 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ class TestCaseOptions < Test::Unit::TestCase
def assert_raise_both_types(*options)
assert_raise_functional_operations 'a', *options
assert_raise_bang_operations +'a', *options
assert_raise_bang_operations(+'a', *options)
assert_raise_functional_operations :a, *options
end
@ -51,7 +51,7 @@ class TestCaseOptions < Test::Unit::TestCase
def assert_okay_both_types(*options)
assert_okay_functional_operations 'a', *options
assert_okay_bang_operations +'a', *options
assert_okay_bang_operations(+'a', *options)
assert_okay_functional_operations :a, *options
end

View file

@ -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