Add koan illustrating that a process is referenced by a pid
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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"},
|
||||||
|
|||||||
Reference in New Issue
Block a user