aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/map_SUITE.erl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-03-06 14:32:13 +0100
committerBjörn-Egil Dahlberg <[email protected]>2014-03-06 14:32:13 +0100
commit1c48db25372a2bc96b5ce643913f95082c550b0c (patch)
tree4885cc3fbc8b2eb5a977f066d86078cc30df6da4 /lib/compiler/test/map_SUITE.erl
parent54cd909aa26fa8cbed4a7bb81919ea914ad2dcc6 (diff)
parentee03d24a84ca995a0403a385b0d808e5abce6b32 (diff)
downloadotp-1c48db25372a2bc96b5ce643913f95082c550b0c.tar.gz
otp-1c48db25372a2bc96b5ce643913f95082c550b0c.tar.bz2
otp-1c48db25372a2bc96b5ce643913f95082c550b0c.zip
Merge branch 'nox/maps-v3_codegen-sort-nil-keys'
* nox/maps-v3_codegen-sort-nil-keys: Properly sort map pairs in v3_codegen
Diffstat (limited to 'lib/compiler/test/map_SUITE.erl')
-rw-r--r--lib/compiler/test/map_SUITE.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/compiler/test/map_SUITE.erl b/lib/compiler/test/map_SUITE.erl
index 01c146507d..59d70bb221 100644
--- a/lib/compiler/test/map_SUITE.erl
+++ b/lib/compiler/test/map_SUITE.erl
@@ -107,6 +107,9 @@ t_build_and_match_literals(Config) when is_list(Config) ->
M = #{ map_1:=#{ map_2:=#{value_3 := third}, value_2:= second}, value_1:=first} =
id(#{ map_1=>#{ map_2=>#{value_3 => third}, value_2=> second}, value_1=>first}),
+ %% nil key
+ #{[]:=ok,1:=2} = id(#{[]=>ok,1=>2}),
+
%% error case
{'EXIT',{{badmatch,_},_}} = (catch (#{x:=3,x:=2} = id(#{x=>3}))),
{'EXIT',{{badmatch,_},_}} = (catch (#{x:=2} = id(#{x=>3}))),