Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #54 from Primordus/module_tests
Minor improvement for specifying amount of tests for entire module.
  • Loading branch information
krestenkrab committed Oct 18, 2015
2 parents 2fe1529 + c574f6d commit c7306b8eaea133d52140cb828817efb5e50a3d52
Showing 1 changed file with 3 additions and 3 deletions.
@@ -284,7 +284,7 @@ all(Fun,[H|T]) ->
%% @end
%%--------------------------------------------------------------------
module(Module) when is_atom(Module) ->
module(Module, 100).
module(Module, ?TEST_COUNT).

module(Module, RunIters) when is_integer(RunIters), RunIters>0 ->
Info = Module:module_info(exports),
@@ -314,8 +314,8 @@ check(Module) when is_atom(Module)->
check(Property) ->
check(Property, [], ?TEST_COUNT).

check(Module, _RunIters) when is_atom(Module) ->
module(Module);
check(Module, RunIters) when is_atom(Module), is_integer(RunIters), RunIters>0 ->
module(Module, RunIters);
check(Property, RunIters) when is_integer(RunIters), RunIters>0 ->
check(Property, [], RunIters);
check(Property, CounterExample) when is_list(CounterExample) ->

0 comments on commit c7306b8

Please sign in to comment.