Avoid keys order issue by using Maps.has_key?/2
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user