Skip to content

Commit

Permalink
Fix #74 by upgrading katana-code (#214)
Browse files Browse the repository at this point in the history
* [#74] Fix #74 by upgrading katana-code

* [#74] Fix test
  • Loading branch information
Brujo Benavides authored Nov 19, 2020
1 parent e12a4cc commit 35bbf81
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test_app/after/src/macros.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@ another_hidden_function() ->
-define(NO_PARENS, no_parens).

other_function(?NO_ARGS(), ?NO_PARENS, ?WITH_ARGS(X), ?WITH_ARGS(?WITH_ARGS(?NO_ARGS()))) -> {?NO_ARGS(), ?NO_PARENS, X}.

%% Careful with parentheses
-define(Now(), 100).

-define(Elapsed(Since), (?Now()-Since)).

-define(Remains(Since, Remaining), N-?Elapsed(Since)).
4 changes: 4 additions & 0 deletions test_app/src/macros.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ another_hidden_function() ->
other_function(?NO_ARGS(), ?NO_PARENS, ?WITH_ARGS(X), ?WITH_ARGS(?WITH_ARGS(?NO_ARGS()))) ->
{?NO_ARGS(), ?NO_PARENS, X}.

%% Careful with parentheses
-define(Now(), 100).
-define(Elapsed(Since), (?Now() - Since)).
-define(Remains(Since, Remaining), N - ?Elapsed(Since)).

0 comments on commit 35bbf81

Please sign in to comment.