Skip to content

Commit ae3a05d

Browse files
committed
Fix test to make sure we check the value
1 parent 1790516 commit ae3a05d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/elixir/test/elixir/map_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,8 @@ defmodule MapTest do
400400
defstruct bitstring: <<255, 127::7>>
401401
end
402402

403-
assert struct!(WithBitstring).bitstring == <<255, 127::7>>
403+
info = Macro.struct_info!(WithBitstring, __ENV__)
404+
assert info == [%{default: <<255, 127::7>>, field: :bitstring}]
404405
end
405406

406407
test "defstruct can only be used once in a module" do

0 commit comments

Comments
 (0)