15 lines
283 B
Elixir
15 lines
283 B
Elixir
if !System.get_env("EXERCISM_TEST_EXAMPLES") do
|
|
Code.load_file("hello_world.exs", __DIR__)
|
|
end
|
|
|
|
ExUnit.start()
|
|
ExUnit.configure(trace: true)
|
|
|
|
defmodule HelloWorldTest do
|
|
use ExUnit.Case
|
|
|
|
test "says 'Hello, World!'" do
|
|
assert HelloWorld.hello() == "Hello, World!"
|
|
end
|
|
end
|