aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-05-12 16:37:22 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-05-12 16:37:22 +0200
commit316cdd16e221870397ee9571609de09314749927 (patch)
tree21dd3cf2650993ec9b4373daf0f4f003092dcc38 /lib/stdlib/test
parente3507ba17f6cb0873d23899e686443b7b8b0f2c7 (diff)
parentc563f5866b42a3479050241284fffc1245aebe7d (diff)
downloadotp-316cdd16e221870397ee9571609de09314749927.tar.gz
otp-316cdd16e221870397ee9571609de09314749927.tar.bz2
otp-316cdd16e221870397ee9571609de09314749927.zip
Merge branch 'maint'
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/erl_eval_SUITE.erl7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/stdlib/test/erl_eval_SUITE.erl b/lib/stdlib/test/erl_eval_SUITE.erl
index b91d14b5b8..b55324161b 100644
--- a/lib/stdlib/test/erl_eval_SUITE.erl
+++ b/lib/stdlib/test/erl_eval_SUITE.erl
@@ -1451,6 +1451,13 @@ eep43(Config) when is_list(Config) ->
" {Map#{a := B},Map#{a => c},Map#{d => e}} "
"end.",
{#{a => b},#{a => c},#{a => b,d => e}}),
+ check(fun () ->
+ lists:map(fun (X) -> X#{price := 0} end,
+ [#{hello => 0, price => nil}])
+ end,
+ "lists:map(fun (X) -> X#{price := 0} end,
+ [#{hello => 0, price => nil}]).",
+ [#{hello => 0, price => 0}]),
error_check("[camembert]#{}.", {badarg,[camembert]}),
error_check("#{} = 1.", {badmatch,1}),
ok.