mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
Prevent "ambiguous first argument" warnings
This commit is contained in:
parent
f057741c5d
commit
fc67091fc8
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ class TestCaseOptions < Test::Unit::TestCase
|
||||||
|
|
||||||
def assert_raise_both_types(*options)
|
def assert_raise_both_types(*options)
|
||||||
assert_raise_functional_operations 'a', *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
|
assert_raise_functional_operations :a, *options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ class TestCaseOptions < Test::Unit::TestCase
|
||||||
|
|
||||||
def assert_okay_both_types(*options)
|
def assert_okay_both_types(*options)
|
||||||
assert_okay_functional_operations 'a', *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
|
assert_okay_functional_operations :a, *options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -3620,11 +3620,11 @@ CODE
|
||||||
assert_predicate chilled_string.clone, :frozen?
|
assert_predicate chilled_string.clone, :frozen?
|
||||||
|
|
||||||
# @+ treat the original string as 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
|
assert_not_same chilled_string, +chilled_string
|
||||||
|
|
||||||
# @- the original string as mutable
|
# @- the original string as mutable
|
||||||
assert_predicate -chilled_string, :frozen?
|
assert_predicate(-chilled_string, :frozen?)
|
||||||
assert_not_same chilled_string, -chilled_string
|
assert_not_same chilled_string, -chilled_string
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue