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