tracks/erlang/exercises/clock/include/exercism.hrl in trackler-2.2.1.8 vs tracks/erlang/exercises/clock/include/exercism.hrl in trackler-2.2.1.9
- old
+ new
@@ -1,11 +1,11 @@
-include_lib("eunit/include/eunit.hrl").
sut(Module) ->
{ok, Files} = file:list_dir("./src"),
- case lists:member(atom_to_list(Module) ++ ".erl", Files) of
- true -> Module;
- false -> example
+ case lists:member("example.erl", Files) of
+ true -> example;
+ false -> Module
end.
version_test() ->
- ?assertMatch(?TEST_VERSION, ?TESTED_MODULE:test_version()).
+ ?assertMatch(?TEST_VERSION, ?TESTED_MODULE:test_version()).