mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-21 01:03:20 -04:00
Merge pull request #89 from lucasrcosta/master
Added Times Statement in Control Statements
This commit is contained in:
@@ -131,4 +131,12 @@ class AboutControlStatements < Neo::Koan
|
|||||||
assert_equal [__("FISH"), __("AND"), __("CHIPS")], result
|
assert_equal [__("FISH"), __("AND"), __("CHIPS")], result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_times_statement
|
||||||
|
i = 0
|
||||||
|
10.times do
|
||||||
|
i += 1
|
||||||
|
end
|
||||||
|
assert_equal __(10), result
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user