Files
elixir-koans/test/koans/functions_koans_test.exs
2023-07-10 14:08:32 +01:00

28 lines
696 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 "]},
{: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"],
{:multiple, ["Success is no accident", "You just lost the game"]},
100,
1000,
"Full Name",
{:multiple, ["GOOD", "good"]}
]
test_all(Functions, answers)
end
end