Protocol examples updated to use Structs
This commit is contained in:
14
test/koans/protocols_koans_test.exs
Normal file
14
test/koans/protocols_koans_test.exs
Normal 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
|
||||
Reference in New Issue
Block a user