A few simple koans about agents

This commit is contained in:
Felipe Sere
2016-04-09 21:29:37 +01:00
parent 4dd877e820
commit 12a511b309
3 changed files with 48 additions and 0 deletions

View File

@@ -222,6 +222,17 @@ defmodule KoansHarnessTest do
test_all(Tasks, answers)
end
test "Agents" do
answers = [
"Hi there",
"HI THERE",
{:multiple, [["Milk"], ["Bread", "Milk"]]},
:ok,
]
test_all(Agents, answers)
end
def test_all(module, answers) do
module.all_koans
|> Enum.zip(answers)