Typo fix: changed "parenthesis" to "parentheses"

This commit is contained in:
Jonathan Castello
2010-08-21 11:32:57 -07:00
parent 7db19b5e92
commit a5180d9ea1
2 changed files with 4 additions and 4 deletions

View File

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

View File

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