The koan about Mapset.member?/2 should appear before Mapset.member?/2 is used
This commit is contained in:
@@ -19,6 +19,10 @@ defmodule MapSets do
|
||||
assert 1..33 |> MapSet.new() |> Enum.fetch(0) == {___, 11}
|
||||
end
|
||||
|
||||
koan "Does this value exist in the map set?" do
|
||||
assert MapSet.member?(@set, 3) == ___
|
||||
end
|
||||
|
||||
koan "I am merely another collection but, you can perform some operations on me" do
|
||||
new_set = MapSet.new(@set, fn x -> 3 * x end)
|
||||
|
||||
@@ -26,10 +30,6 @@ defmodule MapSets do
|
||||
assert MapSet.member?(new_set, 1) == ___
|
||||
end
|
||||
|
||||
koan "Does this value exist in the map set?" do
|
||||
assert MapSet.member?(@set, 3) == ___
|
||||
end
|
||||
|
||||
koan "Add this value into a map set" do
|
||||
modified_set = MapSet.put(@set, 6)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user