aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/map_SUITE.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-03-25 16:57:35 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-03-25 17:43:27 +0100
commit333f03952f76ed15986eeabb9a386904521821ee (patch)
tree20c2bec9948c6ac4027709da8f9621dfbcb594ca /lib/compiler/test/map_SUITE.erl
parentdf6c03de9f692489d757ae1437b8fb2dc6200c6f (diff)
downloadotp-333f03952f76ed15986eeabb9a386904521821ee.tar.gz
otp-333f03952f76ed15986eeabb9a386904521821ee.tar.bz2
otp-333f03952f76ed15986eeabb9a386904521821ee.zip
compiler: Strengthen Maps warnings tests
Increases coverage.
Diffstat (limited to 'lib/compiler/test/map_SUITE.erl')
-rw-r--r--lib/compiler/test/map_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compiler/test/map_SUITE.erl b/lib/compiler/test/map_SUITE.erl
index a889043f73..f1383297ef 100644
--- a/lib/compiler/test/map_SUITE.erl
+++ b/lib/compiler/test/map_SUITE.erl
@@ -238,6 +238,7 @@ t_update_assoc(Config) when is_list(Config) ->
%% Errors cases.
BadMap = id(badmap),
{'EXIT',{badarg,_}} = (catch BadMap#{nonexisting=>val}),
+ {'EXIT',{badarg,_}} = (catch <<>>#{nonexisting=>val}),
ok.
@@ -266,6 +267,7 @@ t_update_exact(Config) when is_list(Config) ->
{'EXIT',{badarg,_}} = (catch M0#{1.0:=v,1.0=>v2}),
{'EXIT',{badarg,_}} = (catch M0#{42.0:=v,42:=v2}),
{'EXIT',{badarg,_}} = (catch M0#{42=>v1,42.0:=v2,42:=v3}),
+ {'EXIT',{badarg,_}} = (catch <<>>#{nonexisting:=val}),
ok.
t_update_values(Config) when is_list(Config) ->