Skip to content

Commit

Permalink
Remove metaprogramming-related keyword list koans
Browse files Browse the repository at this point in the history
Too advanced at this point. Will considering including something like
this in elixirkoans#21.
  • Loading branch information
iamvery committed May 5, 2016
1 parent d7a88a2 commit 79d65dd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
22 changes: 0 additions & 22 deletions lib/koans/06_keyword_lists.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,4 @@ defmodule KeywordLists do

assert transform.("good", upcase: true) == ___
end

def foo(kw_list), do: kw_list

koan "Actually function bodies are a sneaky use of keyword lists" do
list = foo do
:good
end

assert list == [do: ___]
end

def iff(kw_list), do: kw_list

koan "Turns out our beloved if statements are also using keyword lists" do
list = iff do
:this
else
:that
end

assert list == [do: ___, else: ___]
end
end
2 changes: 0 additions & 2 deletions test/koans/keyword_lists_koans_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ defmodule KeywordListsTests do
{:multiple, [:foo, "bar"]},
"foo",
"GOOD",
:good,
{:multiple, [:this, :that]},
]

test_all(KeywordLists, answers)
Expand Down

0 comments on commit 79d65dd

Please sign in to comment.