Add list koan back in
This commit is contained in:
@@ -9,6 +9,10 @@ defmodule Lists do
|
|||||||
assert List.last([1, 2, 3]) == :__
|
assert List.last([1, 2, 3]) == :__
|
||||||
end
|
end
|
||||||
|
|
||||||
|
koan "Lists can store anything you throw at them" do
|
||||||
|
assert [1, 2] ++ [:a, "b"] == :__
|
||||||
|
end
|
||||||
|
|
||||||
koan "Things can evolve" do
|
koan "Things can evolve" do
|
||||||
assert [1, 2, 3] -- [3] == :__
|
assert [1, 2, 3] -- [3] == :__
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ defmodule KoansHarnessTest do
|
|||||||
test "Lists" do
|
test "Lists" do
|
||||||
answers = [1,
|
answers = [1,
|
||||||
3,
|
3,
|
||||||
|
[1, 2, :a, "b"],
|
||||||
[1,2],
|
[1,2],
|
||||||
[1,2,3],
|
[1,2,3],
|
||||||
[1,3],
|
[1,3],
|
||||||
|
|||||||
Reference in New Issue
Block a user