mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
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)
|
assert_equal __, my_global_method(2,3)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_calling_global_methods_without_parenthesis
|
def test_calling_global_methods_without_parentheses
|
||||||
result = my_global_method 2, 3
|
result = my_global_method 2, 3
|
||||||
assert_equal __, result
|
assert_equal __, result
|
||||||
end
|
end
|
||||||
|
|
||||||
# (NOTE: We are Using eval below because the example code is
|
# (NOTE: We are Using eval below because the example code is
|
||||||
# considered to be syntactically invalid).
|
# 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
|
eval "assert_equal 5, my_global_method 2, 3" # ENABLE CHECK
|
||||||
#
|
#
|
||||||
# Ruby doesn't know if you mean:
|
# Ruby doesn't know if you mean:
|
||||||
|
|||||||
@@ -10,14 +10,14 @@ class AboutMethods < EdgeCase::Koan
|
|||||||
assert_equal __(5), my_global_method(2,3)
|
assert_equal __(5), my_global_method(2,3)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_calling_global_methods_without_parenthesis
|
def test_calling_global_methods_without_parentheses
|
||||||
result = my_global_method 2, 3
|
result = my_global_method 2, 3
|
||||||
assert_equal __(5), result
|
assert_equal __(5), result
|
||||||
end
|
end
|
||||||
|
|
||||||
# (NOTE: We are Using eval below because the example code is
|
# (NOTE: We are Using eval below because the example code is
|
||||||
# considered to be syntactically invalid).
|
# 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
|
eval "assert_equal 5, my_global_method(2, 3)" # REMOVE CHECK
|
||||||
if false
|
if false
|
||||||
|
|||||||
Reference in New Issue
Block a user