diff options
author | Sverker Eriksson <[email protected]> | 2015-02-10 21:58:45 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:15:23 +0100 |
commit | aad7d6fe4e1e9fe086d275ab3ea34c5285cc8edb (patch) | |
tree | 23839267520de27c634106afe609df2c614bfb65 /erts/emulator/test/map_SUITE.erl | |
parent | 8db065e5f6c07904db0c63175c906334e2eb5c59 (diff) | |
download | otp-aad7d6fe4e1e9fe086d275ab3ea34c5285cc8edb.tar.gz otp-aad7d6fe4e1e9fe086d275ab3ea34c5285cc8edb.tar.bz2 otp-aad7d6fe4e1e9fe086d275ab3ea34c5285cc8edb.zip |
erts: Change to total ordering of keys in small maps
Diffstat (limited to 'erts/emulator/test/map_SUITE.erl')
-rw-r--r-- | erts/emulator/test/map_SUITE.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/test/map_SUITE.erl b/erts/emulator/test/map_SUITE.erl index 888ed8e272..1e989fbc4d 100644 --- a/erts/emulator/test/map_SUITE.erl +++ b/erts/emulator/test/map_SUITE.erl @@ -432,7 +432,7 @@ t_map_sort_literals(Config) when is_list(Config) -> true = #{ c => 1, b => 1, a => 1 } < id(#{ b => 1, c => 1, d => 1}), true = #{ "a" => 1 } < id(#{ <<"a">> => 1}), false = #{ <<"a">> => 1 } < id(#{ "a" => 1}), - false = #{ 1 => 1 } < id(#{ 1.0 => 1}), + true = #{ 1 => 1 } < id(#{ 1.0 => 1}), false = #{ 1.0 => 1 } < id(#{ 1 => 1}), %% value order @@ -440,6 +440,8 @@ t_map_sort_literals(Config) when is_list(Config) -> false = #{ a => 2 } < id(#{ a => 1}), false = #{ a => 2, b => 1 } < id(#{ a => 1, b => 3}), true = #{ a => 1, b => 1 } < id(#{ a => 1, b => 3}), + false = #{ a => 1 } < id(#{ a => 1.0}), + false = #{ a => 1.0 } < id(#{ a => 1}), true = #{ "a" => "hi", b => 134 } == id(#{ b => 134,"a" => "hi"}), |