Skip to content

Commit

Permalink
Fixes #12: Missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
elbrujohalcon committed Jul 7, 2014
1 parent 7be3fb2 commit ade12a7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/examples/fail_macro_module_names.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-module(fail_macro_module_names).

-define(FUNCTION_NAME, function_name).
-define(function_name, function_name).
-define(module_name, ?MODULE).

module_name() ->
?MODULE:function_name(),
?module_name:?function_name().

function_name() ->
module:?FUNCTION_NAME(params),
module:?FUNCTION_NAME (params).

no_errors() -> ?LINE.
10 changes: 10 additions & 0 deletions test/examples/fail_operator_spaces.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-module(fail_operator_spaces).

-export([function1/2,function2/2]).

function1(Should,Fail) ->
[Should,Fail].

function2(Shouldnt, Fail) ->
Unless = [we, consider]++ [operands, as, well],
WithDash = Shouldnt - Fail.

0 comments on commit ade12a7

Please sign in to comment.