Remove Enum.fetch usage for MapSet

This commit is contained in:
Jechol Lee
2020-09-23 14:03:51 +09:00
parent 34000e5eaa
commit fe81c4cdda

View File

@@ -5,11 +5,7 @@ defmodule MapSets do
@set MapSet.new([1, 2, 3, 4, 5])
koan "I am very similar to a list" do
assert Enum.fetch(@set, 0) == {:ok, ___}
end
koan "However, I do not allow duplication" do
koan "I do not allow duplication" do
new_set = MapSet.new([1, 1, 2, 3, 3, 3])
assert MapSet.size(new_set) == ___