Merge pull request #137 from Neku/patch-1

The koan about Mapset.member?/2 should appear before Mapset.member?/2 is used
This commit is contained in:
Uku Taht
2016-07-22 19:38:16 +01:00
committed by GitHub
3 changed files with 7 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
* Makis Otman
* Rabea Gleissner
* Ria Cataquian
* Simone D'Amico
* snikolau
* Trung Lê
* Uku Taht

View File

@@ -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)

View File

@@ -7,8 +7,8 @@ defmodule MapSetsTest do
1,
3,
:ok,
{:multiple, [true, false]},
true,
{:multiple, [true, false]},
true,
false,
5,
@@ -20,4 +20,4 @@ defmodule MapSetsTest do
test_all(MapSets, answers)
end
end
end