finish lesson 04
This commit is contained in:
@@ -6,18 +6,18 @@ defmodule Atoms do
|
|||||||
|
|
||||||
koan "Atoms are constants where their name is their own value" do
|
koan "Atoms are constants where their name is their own value" do
|
||||||
adam = :human
|
adam = :human
|
||||||
assert adam == ___
|
assert adam == :human
|
||||||
end
|
end
|
||||||
|
|
||||||
koan "It is surprising to find out that booleans are atoms" do
|
koan "It is surprising to find out that booleans are atoms" do
|
||||||
assert is_atom(true) == ___
|
assert is_atom(true) == true
|
||||||
assert is_boolean(false) == ___
|
assert is_boolean(false) == true
|
||||||
assert true == ___
|
assert true == true
|
||||||
assert false == ___
|
assert false == false
|
||||||
end
|
end
|
||||||
|
|
||||||
koan "Like booleans, the nil value is also an atom" do
|
koan "Like booleans, the nil value is also an atom" do
|
||||||
assert is_atom(nil) == ___
|
assert is_atom(nil) == true
|
||||||
assert nil == ___
|
assert nil == nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user