Files
elixir-koans/test/executor_test.exs
2016-04-09 23:19:18 +01:00

14 lines
358 B
Elixir

defmodule ExecuteTest do
use ExUnit.Case
test "passes a koan" do
assert :passed == Execute.run_module(PassingKoan)
end
test "stops at the first failing koan" do
{:failed, %{error: _, file: file, line: line}, SampleKoan, _name} = Execute.run_module(SampleKoan)
assert file == 'test/support/sample_koan.ex'
assert line == 5
end
end