Add example for List.wrap(nil)

This better covers the cases of List.wrap
This commit is contained in:
Jay Hayes
2016-06-13 09:29:36 -05:00
parent f95086b14d
commit c20436d0c6
2 changed files with 5 additions and 0 deletions

View File

@@ -63,6 +63,10 @@ defmodule Lists do
assert List.wrap("value") == ___
end
koan "Wrapping nothing produces a list of nothing" do
assert List.wrap(nil) == ___
end
koan "When there is already a list do not wrap it again" do
assert List.wrap(["value"]) == ___
end