summaryrefslogtreecommitdiff
path: root/lib/elixir/test
diff options
context:
space:
mode:
Diffstat (limited to 'lib/elixir/test')
-rw-r--r--lib/elixir/test/elixir/module/checker_test.exs10
-rw-r--r--lib/elixir/test/elixir/protocol/consolidation_test.exs4
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