diff --git a/.gitignore b/.gitignore index 253f03c..6ff84d8 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ ebin/ .eunit/ .idea/ _build +doc/ diff --git a/Makefile b/Makefile index 5436322..e6f8894 100644 --- a/Makefile +++ b/Makefile @@ -15,11 +15,12 @@ compile: rebar3 update: rebar3 $(REBAR) update -test: compile - $(REBAR) eunit +test: + EUNIT=1 $(REBAR) compile + EUNIT=1 $(REBAR) eunit dialyzer: compile - $(REBAR) dialyzer + DIALYZER=1 $(REBAR) dialyzer travis: test dialyzer diff --git a/src/qdate.erl b/src/qdate.erl index 0de40b6..7027b27 100644 --- a/src/qdate.erl +++ b/src/qdate.erl @@ -1206,6 +1206,8 @@ flooring(N) when N < 0 -> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TESTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +-ifdef(EUNIT). + -include_lib("eunit/include/eunit.hrl"). %% emulates as if a forum-type website has a Site tz, and a user-specified tz @@ -1529,3 +1531,5 @@ microsoft_parser(_) -> stop_test(_) -> ok. + +-endif.