Create a test file for each of the koan modules
This commit is contained in:
25
test/koans/lists_koans_test.exs
Normal file
25
test/koans/lists_koans_test.exs
Normal file
@@ -0,0 +1,25 @@
|
||||
defmodule ListsTests do
|
||||
use ExUnit.Case
|
||||
use TestHarness
|
||||
|
||||
test "Lists" do
|
||||
answers = [1,
|
||||
3,
|
||||
[1, 2, :a, "b"],
|
||||
[1,2],
|
||||
[1,2,3],
|
||||
[1,3],
|
||||
["life", "life", "life"],
|
||||
[1, 2, 3, 4, 5],
|
||||
[1, 4, 2, 3],
|
||||
[10, 2, 3],
|
||||
[1, 2, 3],
|
||||
[1, 2, 3, 4],
|
||||
[1, 2, 3, 4],
|
||||
{1, 2, 3},
|
||||
["value"],
|
||||
]
|
||||
|
||||
test_all(Lists, answers)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user