Extract answers for the String module

This commit is contained in:
Felipe Sere
2016-03-13 11:30:27 +00:00
parent 7be4010f2a
commit 5509d8a4eb
2 changed files with 25 additions and 9 deletions

View File

@@ -55,6 +55,22 @@ defmodule KoansHarnessTest do
test_all(Maps, answers)
end
test "String" do
answers = [
"hello",
"hello ",
["hello", "world"],
"An awful day",
"incredible",
"banana",
"banana",
"String",
"listen"
]
test_all(Strings, answers)
end
def test_all(module, answers) do
module.all_koans
|> Enum.zip(answers)