Make sure blank is on the right and improve koans

This commit is contained in:
Felipe Sere
2016-04-23 10:56:17 +01:00
parent 29da6d92a0
commit 14d4e4f551
11 changed files with 46 additions and 55 deletions

View File

@@ -27,10 +27,10 @@ defmodule Agents do
end
koan "Somebody has to switch off the light at the end of the day" do
Agent.start_link(fn() -> ["Milk"] end, name: __MODULE__)
{:ok, pid} = Agent.start_link(fn() -> ["Milk"] end, name: __MODULE__)
result = Agent.stop(__MODULE__)
Agent.stop(__MODULE__)
assert result == ___
assert Process.alive?(pid) == ___
end
end