When learning about the behavior of a function, in general the learning experience is better when provided with the input and asked for the output.
21 lines
324 B
Elixir
21 lines
324 B
Elixir
defmodule StringTests do
|
|
use ExUnit.Case
|
|
import TestHarness
|
|
|
|
test "Strings" do
|
|
answers = [
|
|
"hello",
|
|
"hello ",
|
|
"hello world",
|
|
"An incredible day",
|
|
"incredible",
|
|
"banana",
|
|
"banana",
|
|
"StringStringString",
|
|
"LISTEN",
|
|
]
|
|
|
|
test_all(Strings, answers)
|
|
end
|
|
end
|