Prefer function output over input

When learning about the behavior of a function, in general the learning
experience is better when provided with the input and asked for the
output.
This commit is contained in:
Jay Hayes
2016-06-10 11:08:25 -05:00
parent 3c217073f5
commit f9a7f7016c
2 changed files with 4 additions and 4 deletions

View File

@@ -32,10 +32,10 @@ defmodule Strings do
end
koan "Repetition is the mother of learning" do
assert "StringStringString" == String.duplicate(___, 3)
assert String.duplicate("String", 3) == ___
end
koan "Strings can be louder when necessary" do
assert "LISTEN" == String.upcase(___)
assert String.upcase("listen") == ___
end
end