Avoid keys order issue by using Maps.has_key?/2

This commit is contained in:
Jay Hayes
2016-05-04 09:28:49 -05:00
parent f93e29cc8c
commit e2468b92cc
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ defmodule Maps do
koan "Can remove pairs by key" do
without_age = Map.delete(@person, :age)
assert Enum.sort(Map.keys(without_age)) == ___
assert Map.has_key?(without_age, :age) == ___
end
koan "Can merge maps" do