diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-03-18 12:17:47 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-03-18 12:17:47 +0100 |
commit | 8d66a2823c29cbe44cf80e4de0c58f2ed5c29bd4 (patch) | |
tree | 9e15b0d71d52176905fd1c45fe1160b09be07dfd /lib/debugger/test/map_SUITE.erl | |
parent | fb0a5a669e43590de66d662b99c2762e596c01e3 (diff) | |
parent | 4185be0ad649bccb15bb67a15b618b6cc14fe253 (diff) | |
download | otp-8d66a2823c29cbe44cf80e4de0c58f2ed5c29bd4.tar.gz otp-8d66a2823c29cbe44cf80e4de0c58f2ed5c29bd4.tar.bz2 otp-8d66a2823c29cbe44cf80e4de0c58f2ed5c29bd4.zip |
Merge branch 'nox/maps-eval-empty-update'
* nox/maps-eval-empty-update:
Fix evaluation of empty map patterns in erl_lint
Fix evaluation of empty map updates in the debugger
Fix evaluation of empty map updates in erl_eval
Diffstat (limited to 'lib/debugger/test/map_SUITE.erl')
-rw-r--r-- | lib/debugger/test/map_SUITE.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/debugger/test/map_SUITE.erl b/lib/debugger/test/map_SUITE.erl index 741ad2dc41..0076193725 100644 --- a/lib/debugger/test/map_SUITE.erl +++ b/lib/debugger/test/map_SUITE.erl @@ -226,8 +226,8 @@ t_update_map_expressions(Config) when is_list(Config) -> #{ "a" :=1, "b":=42, "c":=42 } = (maps:from_list([{"a",1},{"b",2}]))#{ "b" := 42, "c" => 42 }, %% Error cases, FIXME: should be 'badmap'? - {'EXIT',{badarg,_}} = (catch (id(<<>>))#{ a := 42, b => 2 }), - {'EXIT',{badarg,_}} = (catch (id([]))#{ a := 42, b => 2 }), + {'EXIT',{{badarg,<<>>},_}} = (catch (id(<<>>))#{ a := 42, b => 2 }), + {'EXIT',{{badarg,[]},_}} = (catch (id([]))#{ a := 42, b => 2 }), ok. @@ -244,7 +244,7 @@ t_update_assoc(Config) when is_list(Config) -> %% Errors cases. BadMap = id(badmap), - {'EXIT',{badarg,_}} = (catch BadMap#{nonexisting=>val}), + {'EXIT',{{badarg,BadMap},_}} = (catch BadMap#{nonexisting=>val}), ok. |