Fixing mismatch in koan description and assertion

This commit is contained in:
James Robey
2020-08-18 09:38:36 +07:00
parent 4ff2490745
commit b06951ef9d
2 changed files with 2 additions and 3 deletions

View File

@@ -17,9 +17,8 @@ defmodule KeywordLists do
koan "You could access the values of repeating key" do koan "You could access the values of repeating key" do
kw_list = [foo: "bar", foo1: "bar1", foo: "baz"] kw_list = [foo: "bar", foo1: "bar1", foo: "baz"]
values = Keyword.get_values(kw_list, :foo)
assert List.last(values) == ___ assert Keyword.get_values(kw_list, :foo) == [___, ___]
end end
koan "Keyword lists are just special syntax for lists of two-element tuples" do koan "Keyword lists are just special syntax for lists of two-element tuples" do

View File

@@ -6,7 +6,7 @@ defmodule KeywordListsTests do
answers = [ answers = [
"bar", "bar",
"bar", "bar",
"baz", {:multiple, ["bar", "baz"]},
{:multiple, [:foo, "bar"]}, {:multiple, [:foo, "bar"]},
"foo" "foo"
] ]