@@ -88,6 +88,28 @@ function_calls_with_multiple_args_with_line_breaks_test() ->
88
88
function_calls_with_parenthesis_test () ->
89
89
{3 , [{a ,_ },{b ,1 }]} = eval (" a = (fn x -> x + 2 end).(b = 1)" ).
90
90
91
+ function_call_with_a_single_space_test () ->
92
+ {3 , _ } = eval (" a = fn a, b -> a + b end; a. (1,2)" ),
93
+ {3 , _ } = eval (" a = fn a, b -> a + b end; a .(1,2)" ).
94
+
95
+ function_call_with_spaces_test () ->
96
+ {3 , _ } = eval (" a = fn a, b -> a + b end; a . (1,2)" ).
97
+
98
+ function_call_without_assigning_with_spaces_test () ->
99
+ {3 , _ } = eval (" (fn a, b -> a + b end) . (1,2)" ).
100
+
101
+ function_call_with_assignment_and_spaces_test () ->
102
+ {3 , [{a ,_ },{c ,3 }]} = eval (" a = fn x -> x + 2 end; c = a . (1)" ).
103
+
104
+ function_call_with_multiple_spaces_test () ->
105
+ {3 , _ } = eval (" a = fn a, b -> a + b end; a . (1,2)" ).
106
+
107
+ function_call_with_multiline_test () ->
108
+ {3 , _ } = eval (" a = fn a, b -> a + b end; a . \n (1,2)" ).
109
+
110
+ function_call_with_tabs_test () ->
111
+ {3 , _ } = eval (" a = fn a, b -> a + b end; a .\n\t (1,2)" ).
112
+
91
113
% % Partial application
92
114
93
115
require_partial_application_test () ->
@@ -96,4 +118,4 @@ require_partial_application_test() ->
96
118
97
119
import_partial_application_test () ->
98
120
{ Fun , _ } = eval (" is_atom(&1)" ),
99
- Fun = fun erlang :is_atom /1 .
121
+ Fun = fun erlang :is_atom /1 .
0 commit comments