Extract answers from Structs module

This commit is contained in:
Felipe Sere
2016-03-15 23:13:43 +00:00
parent 52d1c1161e
commit 56b6679a69
2 changed files with 21 additions and 16 deletions

View File

@@ -149,6 +149,20 @@ defmodule KoansHarnessTest do
test_all(Arithmetic, answers)
end
test "Structs" do
answers = [
nil,
"Joe",
33,
23,
22,
true,
22,
]
test_all(Structs, answers)
end
def test_all(module, answers) do
module.all_koans
|> Enum.zip(answers)