Added GenServer Koans

This commit is contained in:
Eric Anderson
2017-07-13 14:39:15 -05:00
parent 4eacb11d47
commit 62ab2b9688
3 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
defmodule GenServersTests do
use ExUnit.Case
import TestHarness
test "GenServers" do
answers = [
true,
"Hey Arnold!",
1234,
{:multiple, ["Tribe Bicycle Co.", "CRMO Series"]},
["this", "is", "sparta"],
"Hello",
{:error, "Incorrect password!"},
"Congrats! Your process was successfully named.",
{:ok, "Bicycle unlocked!"},
{:multiple, ["Bicycle unlocked!", "Incorrect password!", "Argh...Jack Sparrow's password is: Elixir"]},
]
test_all(GenServers, answers)
end
end