diff options
author | Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> | 2019-07-09 20:10:15 +0200 |
---|---|---|
committer | Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> | 2019-07-09 20:10:15 +0200 |
commit | 5d4074339310f3ab3f5f643d9621608919767e2c (patch) | |
tree | c21d4a71b522eb902ad94cb791a4c2a2312596a0 /lib/elixir/test | |
parent | 8ee038fe494f41d6df94a06c0e9aeb3b4e0d730b (diff) | |
download | elixir-emj/chunk-exck.tar.gz |
Make ExCk chunk reproducibleemj/chunk-exck
Diffstat (limited to 'lib/elixir/test')
-rw-r--r-- | lib/elixir/test/elixir/module/checker_test.exs | 10 | ||||
-rw-r--r-- | lib/elixir/test/elixir/protocol/consolidation_test.exs | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/elixir/test/elixir/module/checker_test.exs b/lib/elixir/test/elixir/module/checker_test.exs index e7f4350b8..fc27a518c 100644 --- a/lib/elixir/test/elixir/module/checker_test.exs +++ b/lib/elixir/test/elixir/module/checker_test.exs @@ -29,11 +29,11 @@ defmodule Module.CheckerTest do modules = compile(files) map = read_chunk(modules[A]) - assert map == %{ - {:c, 0} => {:def, nil}, - {:d, 0} => {:defmacro, nil}, - {:e, 0} => {:def, "oops"} - } + assert map == [ + {{:c, 0}, {:def, nil}}, + {{:d, 0}, {:defmacro, nil}}, + {{:e, 0}, {:def, "oops"}} + ] end end diff --git a/lib/elixir/test/elixir/protocol/consolidation_test.exs b/lib/elixir/test/elixir/protocol/consolidation_test.exs index 60f1c1aed..ac2b1adfa 100644 --- a/lib/elixir/test/elixir/protocol/consolidation_test.exs +++ b/lib/elixir/test/elixir/protocol/consolidation_test.exs @@ -116,8 +116,8 @@ defmodule Protocol.ConsolidationTest do assert deprecated == Sample.__info__(:deprecated) {:ok, {Sample, [{'ExCk', check_bin}]}} = :beam_lib.chunks(@sample_binary, ['ExCk']) - assert {:elixir_checker_v1, map} = :erlang.binary_to_term(check_bin) - assert %{{:ok, 1} => {:def, "Reason"}} = map + assert {:elixir_checker_v1, exports} = :erlang.binary_to_term(check_bin) + assert {{:ok, 1}, {:def, "Reason"}} in exports end test "consolidation keeps source" do |