mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
Fixed times example.
This commit is contained in:
@@ -132,11 +132,11 @@ class AboutControlStatements < Neo::Koan
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_times_statement
|
def test_times_statement
|
||||||
i = 0
|
sum = 0
|
||||||
10.times do
|
10.times do
|
||||||
i += 1
|
sum += 1
|
||||||
end
|
end
|
||||||
assert_equal __(10), result
|
assert_equal __(10), sum
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user