@@ -35,7 +35,7 @@ defmodule PatternMatching do
|
|||||||
assert third == ___
|
assert third == ___
|
||||||
end
|
end
|
||||||
|
|
||||||
koan "Strings come apart just a easily" do
|
koan "Strings come apart just as easily" do
|
||||||
"Shopping list: " <> items = "Shopping list: eggs, milk"
|
"Shopping list: " <> items = "Shopping list: eggs, milk"
|
||||||
|
|
||||||
assert items == ___
|
assert items == ___
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ defmodule Processes do
|
|||||||
assert Process.alive?(pid) == ___
|
assert Process.alive?(pid) == ___
|
||||||
end
|
end
|
||||||
|
|
||||||
koan "You can also terminate other processes than yourself" do
|
koan "You can also terminate processes other than yourself" do
|
||||||
pid = spawn(fn -> receive do end end)
|
pid = spawn(fn -> receive do end end)
|
||||||
|
|
||||||
assert Process.alive?(pid) == ___
|
assert Process.alive?(pid) == ___
|
||||||
|
|||||||
Reference in New Issue
Block a user