Files
elixir-koans/test/koans/functions_koans_test.exs
Jay Hayes b8d7abe4ea Change definition of anonymous greet
That prevents the confusion of mixing up the anonymous and named
implementations fixed by 55f592.
2017-01-24 08:08:01 -06:00

26 lines
598 B
Elixir

defmodule FunctionsTests do
use ExUnit.Case
import 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, ["The number was zero", "The number was 5"]},
6,
6,
"Hi, Foo!",
["foo", "foo", "foo"],
100,
1000,
"Full Name",
]
test_all(Functions, answers)
end
end