Files
elixir-koans/test/koans/processes_koans_test.exs
Sven Gehring c708936456 Refactor Koan with slow/fast process example
A combined solution of the examples provided by
@iamvery and myself.
2017-03-22 15:10:21 +01:00

27 lines
513 B
Elixir

defmodule ProcessesTests do
use ExUnit.Case
import TestHarness
test "Processes" do
answers = [
true,
:running,
true,
true,
{:multiple, [false, true]},
"hola!",
true,
{:multiple, ["hola!", "como se llama?"]},
:how_are_you?,
{:multiple, ["O", "HAI"]},
{:multiple, ["foo", "bar"]},
{:waited_too_long, "I am impatient"},
{:exited, :random_reason},
:normal,
:normal,
]
test_all(Processes, answers)
end
end