aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compiler/test')
-rw-r--r--lib/compiler/test/inline_SUITE.erl13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/compiler/test/inline_SUITE.erl b/lib/compiler/test/inline_SUITE.erl
index 01bc9b34ad..63180c3f95 100644
--- a/lib/compiler/test/inline_SUITE.erl
+++ b/lib/compiler/test/inline_SUITE.erl
@@ -277,6 +277,19 @@ lists(Config) when is_list(Config) ->
{'EXIT',{function_clause,_}} =
(catch lists:mapfoldr(fun (X, Acc) -> {X,Acc} end, acc, not_a_list)),
+ {'EXIT',{function_clause,_}} = (catch lists:map(not_a_function, [])),
+ {'EXIT',{function_clause,_}} = (catch lists:flatmap(not_a_function, [])),
+ {'EXIT',{function_clause,_}} = (catch lists:foreach(not_a_function, [])),
+ {'EXIT',{function_clause,_}} = (catch lists:filter(not_a_function, [])),
+ {'EXIT',{function_clause,_}} = (catch lists:any(not_a_function, [])),
+ {'EXIT',{function_clause,_}} = (catch lists:all(not_a_function, [])),
+ {'EXIT',{function_clause,_}} = (catch lists:foldl(not_a_function, acc, [])),
+ {'EXIT',{function_clause,_}} = (catch lists:foldr(not_a_function, acc, [])),
+ {'EXIT',{function_clause,_}} =
+ (catch lists:mapfoldl(not_a_function, acc, [])),
+ {'EXIT',{function_clause,_}} =
+ (catch lists:mapfoldr(not_a_function, acc, [])),
+
ok.
my_apply(M, F, A, Init) ->