aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-02-05 19:41:31 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-02-07 11:29:37 +0100
commitb31a985383d1d641b4d05439c9e30a2f5958dd93 (patch)
treecc961d2041a563399701836418c0050e36b8f960 /lib
parent963c06a5b72c2ac8d88a6910ee60248d6dca747d (diff)
downloadotp-b31a985383d1d641b4d05439c9e30a2f5958dd93.tar.gz
otp-b31a985383d1d641b4d05439c9e30a2f5958dd93.tar.bz2
otp-b31a985383d1d641b4d05439c9e30a2f5958dd93.zip
compiler: Update map_SUITE with error case test
M#{ key := V } should fail when M is not a Map
Diffstat (limited to 'lib')
-rw-r--r--lib/compiler/test/map_SUITE.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compiler/test/map_SUITE.erl b/lib/compiler/test/map_SUITE.erl
index 0ba5d5dd0d..dc880a7a9d 100644
--- a/lib/compiler/test/map_SUITE.erl
+++ b/lib/compiler/test/map_SUITE.erl
@@ -215,6 +215,7 @@ t_update_exact(Config) when is_list(Config) ->
M2 = M0#{3=>wrong,3.0:=new},
%% Errors cases.
+ {'EXIT',{badarg,_}} = (catch ((id(nil))#{ a := b })),
{'EXIT',{badarg,_}} = (catch M0#{nonexisting:=val}),
{'EXIT',{badarg,_}} = (catch M0#{1.0:=v,1.0=>v2}),
{'EXIT',{badarg,_}} = (catch M0#{42.0:=v,42:=v2}),