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] == ___
end
koan "Processes are referenced by their process ID (pid)" do
assert is_pid(self) == ___
end
koan "New processes are spawned functions" do
pid = spawn(fn -> nil end)