Adds a koan to demonstrate the use of deriving a default behaviour

This commit is contained in:
gemcfadyen
2016-05-27 10:09:33 +01:00
parent 143b2bb7ff
commit e9ab727448
2 changed files with 26 additions and 9 deletions

View File

@@ -4,7 +4,8 @@ defmodule ProtocolsTests do
test "Protocols" do
answers = [
{:multiple, ["Emily enrolled at secondary school", "Darcy enrolled for ballet"]},
{:multiple, ["Andre signed up for violin", "Darcy enrolled for ballet"]},
"Emily enrolled at school",
Protocol.UndefinedError
]