Combine keys and values map koans

This commit is contained in:
Uku Taht
2016-04-10 00:08:07 +01:00
parent 9e16bfdac8
commit b63a5d8e9a
2 changed files with 2 additions and 6 deletions

View File

@@ -13,11 +13,8 @@ defmodule Maps do
age: 27 }
end
koan "You can get all the keys from the map" do
koan "A map has keys and values" do
assert Map.keys(@person) |> Enum.sort == :__
end
koan "Or you can also get all the values from it" do
assert Map.values(@person) |> Enum.sort == :__
end

View File

@@ -86,8 +86,7 @@ defmodule KoansHarnessTest do
test "Maps" do
answers = [
"Jon",
[:age, :last_name, :name],
[27, "Jon", "Snow"],
{:multiple, [[:age, :last_name, :name], [27, "Jon", "Snow"]]},
{:ok, 27},
:error,
{:ok, "Kayaking"},