Create a test file for each of the koan modules
This commit is contained in:
22
test/koans/functions_koans_test.exs
Normal file
22
test/koans/functions_koans_test.exs
Normal file
@@ -0,0 +1,22 @@
|
||||
defmodule FunctionsTests do
|
||||
use ExUnit.Case
|
||||
use TestHarness
|
||||
|
||||
test "Functions" do
|
||||
answers = [
|
||||
"Hello, World!",
|
||||
3,
|
||||
{:multiple, ["One and Two", "Only One"]},
|
||||
{:multiple, ["Hello Hello Hello Hello Hello ","Hello Hello "]},
|
||||
{:multiple, [:entire_list, :single_thing]},
|
||||
{:multiple, ["10 is bigger than 5", "4 is not bigger than 27"]},
|
||||
{:multiple, ["It was zero", "The length was 5"]},
|
||||
6,
|
||||
6,
|
||||
100,
|
||||
"Full Name"
|
||||
]
|
||||
|
||||
test_all(Functions, answers)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user