Protocol examples updated to use Structs

This commit is contained in:
gemcfadyen
2016-05-25 17:44:42 +01:00
parent 65553d966f
commit c970ed01dd
4 changed files with 67 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
defmodule ProtocolsTests do
use ExUnit.Case
import TestHarness
test "Protocols" do
answers = [
"Emily enrolled at secondary school",
"Darcy enrolled for ballet",
Protocol.UndefinedError
]
test_all(Protocols, answers)
end
end