Use koan assertions to fail the tests

This commit is contained in:
Uku Taht
2016-03-12 16:11:32 +02:00
parent 0eb715d4ca
commit 031258e086
2 changed files with 4 additions and 15 deletions

View File

@@ -14,12 +14,8 @@ defmodule Koans do
end
def unquote(compiled_name)(answer) do
try do
unquote(mangled_body)
:ok
rescue
e in _ -> e
end
unquote(mangled_body)
:ok
end
end
end