Add koan illustrating that a process is referenced by a pid

This commit is contained in:
Jay Hayes
2016-05-03 17:34:38 -05:00
parent b39f951fcc
commit 1f1112c888
2 changed files with 5 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ defmodule Processes do
assert information[:status] == ___ assert information[:status] == ___
end end
koan "Processes are referenced by their process ID (pid)" do
assert is_pid(self) == ___
end
koan "New processes are spawned functions" do koan "New processes are spawned functions" do
pid = spawn(fn -> nil end) pid = spawn(fn -> nil end)

View File

@@ -7,6 +7,7 @@ defmodule ProcessesTests do
true, true,
:running, :running,
true, true,
true,
"hola!", "hola!",
:how_are_you?, :how_are_you?,
{:waited_too_long, "I am impatient"}, {:waited_too_long, "I am impatient"},