Remove "keys and values" example
This commit is contained in:
@@ -13,11 +13,6 @@ defmodule Maps do
|
|||||||
age: 27 }
|
age: 27 }
|
||||||
end
|
end
|
||||||
|
|
||||||
koan "A map has keys and values" do
|
|
||||||
assert Enum.sort(Map.keys(@person)) == ___
|
|
||||||
assert Enum.sort(Map.values(@person)) == ___
|
|
||||||
end
|
|
||||||
|
|
||||||
koan "Fetching a value returns a tuple with ok when it exists" do
|
koan "Fetching a value returns a tuple with ok when it exists" do
|
||||||
assert Map.fetch(@person, :age) == ___
|
assert Map.fetch(@person, :age) == ___
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ defmodule MapsTests do
|
|||||||
test "Maps" do
|
test "Maps" do
|
||||||
answers = [
|
answers = [
|
||||||
"Jon",
|
"Jon",
|
||||||
{:multiple, [[:age, :last_name, :name], [27, "Jon", "Snow"]]},
|
|
||||||
{:ok, 27},
|
{:ok, 27},
|
||||||
:error,
|
:error,
|
||||||
{:ok, "Kayaking"},
|
{:ok, "Kayaking"},
|
||||||
|
|||||||
Reference in New Issue
Block a user