Typo fix: changed "parenthesis" to "parentheses"
This commit is contained in:
@@ -10,14 +10,14 @@ class AboutMethods < EdgeCase::Koan
|
||||
assert_equal __, my_global_method(2,3)
|
||||
end
|
||||
|
||||
def test_calling_global_methods_without_parenthesis
|
||||
def test_calling_global_methods_without_parentheses
|
||||
result = my_global_method 2, 3
|
||||
assert_equal __, result
|
||||
end
|
||||
|
||||
# (NOTE: We are Using eval below because the example code is
|
||||
# considered to be syntactically invalid).
|
||||
def test_sometimes_missing_parenthesis_are_ambiguous
|
||||
def test_sometimes_missing_parentheses_are_ambiguous
|
||||
eval "assert_equal 5, my_global_method 2, 3" # ENABLE CHECK
|
||||
#
|
||||
# Ruby doesn't know if you mean:
|
||||
|
||||
@@ -10,14 +10,14 @@ class AboutMethods < EdgeCase::Koan
|
||||
assert_equal __(5), my_global_method(2,3)
|
||||
end
|
||||
|
||||
def test_calling_global_methods_without_parenthesis
|
||||
def test_calling_global_methods_without_parentheses
|
||||
result = my_global_method 2, 3
|
||||
assert_equal __(5), result
|
||||
end
|
||||
|
||||
# (NOTE: We are Using eval below because the example code is
|
||||
# considered to be syntactically invalid).
|
||||
def test_sometimes_missing_parenthesis_are_ambiguous
|
||||
def test_sometimes_missing_parentheses_are_ambiguous
|
||||
#--
|
||||
eval "assert_equal 5, my_global_method(2, 3)" # REMOVE CHECK
|
||||
if false
|
||||
|
||||
Reference in New Issue
Block a user