fixed eunit test macro definition
This commit is contained in:
parent
4d8246dcdc
commit
d58fc57ab4
5 changed files with 10 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
%% edit eunit_test_path if you want to run your own tests, use "../" not "./" as
|
%% edit eunit_test_path if you want to run your own tests, use "../" not "./" as
|
||||||
%% rebar changes to working dir to .eunit when running tests
|
%% rebar changes to working dir to .eunit when running tests
|
||||||
{eunit_compile_opts, [{d, test}, {d, eunit_test_path, "../test/cases"}]}.
|
{eunit_compile_opts, [{d, eunit_test_path, "../test/cases"}]}.
|
||||||
|
|
||||||
%% uncomment to get verbose output from test suite
|
%% uncomment to get verbose output from test suite
|
||||||
%% {eunit_opts, [verbose]}.
|
%% {eunit_opts, [verbose]}.
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
-include("./include/jsx_eep0018.hrl").
|
-include("./include/jsx_eep0018.hrl").
|
||||||
|
|
||||||
|
|
||||||
-ifdef(test).
|
-ifdef(TEST).
|
||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-endif.
|
-endif.
|
||||||
|
|
||||||
|
@ -400,7 +400,7 @@ to_hex(X) -> X + $0.
|
||||||
|
|
||||||
|
|
||||||
%% eunit tests
|
%% eunit tests
|
||||||
-ifdef(test).
|
-ifdef(TEST).
|
||||||
|
|
||||||
decode_test_() ->
|
decode_test_() ->
|
||||||
[
|
[
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
-include("./include/jsx_format.hrl").
|
-include("./include/jsx_format.hrl").
|
||||||
|
|
||||||
|
|
||||||
-ifdef(test).
|
-ifdef(TEST).
|
||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-endif.
|
-endif.
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ space(Opts) ->
|
||||||
|
|
||||||
%% eunit tests
|
%% eunit tests
|
||||||
|
|
||||||
-ifdef(test).
|
-ifdef(TEST).
|
||||||
|
|
||||||
minify_test_() ->
|
minify_test_() ->
|
||||||
[
|
[
|
||||||
|
|
|
@ -29,19 +29,19 @@
|
||||||
-author("alisdairsullivan@yahoo.ca").
|
-author("alisdairsullivan@yahoo.ca").
|
||||||
|
|
||||||
|
|
||||||
-ifndef(test).
|
-ifndef(TEST).
|
||||||
-export([test/0]).
|
-export([test/0]).
|
||||||
-endif.
|
-endif.
|
||||||
|
|
||||||
|
|
||||||
-ifdef(test).
|
-ifdef(TEST).
|
||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-endif.
|
-endif.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%% if not compiled with test support
|
%% if not compiled with test support
|
||||||
-ifndef(test).
|
-ifndef(TEST).
|
||||||
test() -> erlang:error(notest).
|
test() -> erlang:error(notest).
|
||||||
-else.
|
-else.
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
-include("./include/jsx_verify.hrl").
|
-include("./include/jsx_verify.hrl").
|
||||||
|
|
||||||
|
|
||||||
-ifdef(test).
|
-ifdef(TEST).
|
||||||
-include_lib("eunit/include/eunit.hrl").
|
-include_lib("eunit/include/eunit.hrl").
|
||||||
-endif.
|
-endif.
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ collect(_, _) ->
|
||||||
|
|
||||||
|
|
||||||
%% eunit tests
|
%% eunit tests
|
||||||
-ifdef(test).
|
-ifdef(TEST).
|
||||||
|
|
||||||
true_test_() ->
|
true_test_() ->
|
||||||
[
|
[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue