Create a test file for each of the koan modules

This commit is contained in:
Felipe Sere
2016-04-23 11:46:45 +01:00
parent 4c5009c697
commit b1479487b0
14 changed files with 250 additions and 215 deletions

View File

@@ -0,0 +1,23 @@
defmodule PatternsTests do
use ExUnit.Case
use TestHarness
test "Pattern Matching" do
answers = [
1,
2,
1,
{:multiple, [1, [2,3,4]]},
[1,2,3,4],
3,
"eggs, milk",
"Honda",
[1,2,3],
{:multiple, ["Meow", "Woof", "Eh?",]},
"dog",
"Max"
]
test_all(PatternMatching, answers)
end
end