From b31a985383d1d641b4d05439c9e30a2f5958dd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Wed, 5 Feb 2014 19:41:31 +0100 Subject: compiler: Update map_SUITE with error case test M#{ key := V } should fail when M is not a Map --- lib/compiler/test/map_SUITE.erl | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/compiler/test/map_SUITE.erl') 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}), -- cgit v1.2.3