Create a test file for each of the koan modules
This commit is contained in:
17
test/koans/structs_koans_test.exs
Normal file
17
test/koans/structs_koans_test.exs
Normal file
@@ -0,0 +1,17 @@
|
||||
defmodule StructsTests do
|
||||
use ExUnit.Case
|
||||
use TestHarness
|
||||
|
||||
test "Structs" do
|
||||
answers = [
|
||||
%Structs.Person{},
|
||||
nil,
|
||||
"Joe",
|
||||
33,
|
||||
{:multiple, [true, false]},
|
||||
22,
|
||||
]
|
||||
|
||||
test_all(Structs, answers)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user