We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1790516 commit ae3a05dCopy full SHA for ae3a05d
lib/elixir/test/elixir/map_test.exs
@@ -400,7 +400,8 @@ defmodule MapTest do
400
defstruct bitstring: <<255, 127::7>>
401
end
402
403
- assert struct!(WithBitstring).bitstring == <<255, 127::7>>
+ info = Macro.struct_info!(WithBitstring, __ENV__)
404
+ assert info == [%{default: <<255, 127::7>>, field: :bitstring}]
405
406
407
test "defstruct can only be used once in a module" do
0 commit comments