exercism/erlang/hello-world/include/exercism.hrl

12 lines
272 B
Erlang
Raw Normal View History

2017-08-12 14:01:07 +00:00
-include_lib("eunit/include/eunit.hrl").
sut(Module) ->
{ok, Files} = file:list_dir("./src"),
case lists:member("example.erl", Files) of
true -> example;
false -> Module
end.
version_test() ->
?assertMatch(?TEST_VERSION, ?TESTED_MODULE:test_version()).