Add wrapping list koan
This commit is contained in:
@@ -60,4 +60,8 @@ defmodule Lists do
|
|||||||
koan "Wrapping other values is a handy option" do
|
koan "Wrapping other values is a handy option" do
|
||||||
assert List.wrap("value") == ___
|
assert List.wrap("value") == ___
|
||||||
end
|
end
|
||||||
|
|
||||||
|
koan "When there is already a list do not wrap it again" do
|
||||||
|
assert List.wrap(["value"]) == ___
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ defmodule ListsTests do
|
|||||||
[1, 2, 3, 4],
|
[1, 2, 3, 4],
|
||||||
{1, 2, 3},
|
{1, 2, 3},
|
||||||
["value"],
|
["value"],
|
||||||
|
["value"],
|
||||||
]
|
]
|
||||||
|
|
||||||
test_all(Lists, answers)
|
test_all(Lists, answers)
|
||||||
|
|||||||
Reference in New Issue
Block a user