Add nil example to the atoms koans
This commit is contained in:
@@ -14,4 +14,9 @@ defmodule Atoms do
|
|||||||
assert :true == ___
|
assert :true == ___
|
||||||
assert :false == ___
|
assert :false == ___
|
||||||
end
|
end
|
||||||
|
|
||||||
|
koan "Like booleans, the nil value is also an atom" do
|
||||||
|
assert is_atom(nil) == ___
|
||||||
|
assert :nil == ___
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
@@ -6,6 +6,7 @@ defmodule AtomsTests do
|
|||||||
answers = [
|
answers = [
|
||||||
:human,
|
:human,
|
||||||
{:multiple, [true, true, true, false]},
|
{:multiple, [true, true, true, false]},
|
||||||
|
{:multiple, [true, nil]}
|
||||||
]
|
]
|
||||||
|
|
||||||
test_all(Atoms, answers)
|
test_all(Atoms, answers)
|
||||||
|
Reference in New Issue
Block a user