diff options
author | John Högberg <[email protected]> | 2019-05-28 11:36:33 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2019-05-28 11:36:33 +0200 |
commit | 840d77f10ed5897a1eb69e179dbdca5e47deb152 (patch) | |
tree | f365a1b47e88e4bbf755f6b555945396ec7fd95e /lib/compiler/test | |
parent | 4953ee5e5f02adba1bd511a8f628f198d14676e7 (diff) | |
parent | 0e72e780498e47614de5730c8d4453948c9ad1da (diff) | |
download | otp-840d77f10ed5897a1eb69e179dbdca5e47deb152.tar.gz otp-840d77f10ed5897a1eb69e179dbdca5e47deb152.tar.bz2 otp-840d77f10ed5897a1eb69e179dbdca5e47deb152.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/compiler/test')
-rw-r--r-- | lib/compiler/test/beam_type_SUITE.erl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/compiler/test/beam_type_SUITE.erl b/lib/compiler/test/beam_type_SUITE.erl index 0d1680fb15..2297c2e0f5 100644 --- a/lib/compiler/test/beam_type_SUITE.erl +++ b/lib/compiler/test/beam_type_SUITE.erl @@ -24,7 +24,7 @@ integers/1,numbers/1,coverage/1,booleans/1,setelement/1, cons/1,tuple/1,record_float/1,binary_float/1,float_compare/1, arity_checks/1,elixir_binaries/1,find_best/1, - test_size/1,cover_lists_functions/1]). + test_size/1,cover_lists_functions/1,list_append/1]). suite() -> [{ct_hooks,[ts_install_cth]}]. @@ -47,7 +47,8 @@ groups() -> elixir_binaries, find_best, test_size, - cover_lists_functions + cover_lists_functions, + list_append ]}]. init_per_suite(Config) -> @@ -501,5 +502,11 @@ cover_lists_functions(Config) -> true = is_list(Zipped), ok. +list_append(_Config) -> + %% '++'/2 has a quirk where it returns the right-hand argument as-is when + %% the left-hand is []. + hello = id([]) ++ id(hello), + ok. + id(I) -> I. |