anchor.diff:                                   Fields)};
                    ({{enum,Name}, ENs}) ->
                         {{enum,reformat_name(Name)}, ENs};
  +                 ({package, Name}) ->
  +                      {package, reformat_name(Name)};
                    (OtherElem) ->
                         OtherElem
                 end,
  
positive.code:         lists:sort(reformat_names(flatten_defs(absolutify_names(Elems)))).
  
  resolve_refs_test() ->
      {ok, Elems} = parse_lines(["message m1 {"
                                 "  message m2 { required uint32 x = 1; }",
                                 "  enum    e1 { a = 17; }",
                                 "  required m2     y = 1;",
  
negative.code:            "  repeated Msg.Msg2 y=1;",
             "}"]).
  
  parses_package_test() ->
      {ok, [{package,[p1,'.',p2]}, {{enum,e1}, _}]} =
          parse_lines(["package p1.p2;",
                       "enum e1 { a = 1; }"]).
  
  parses_import_test() ->
      {ok, [{package,[p1,'.',p2]}, {import, "a/b/c.proto"}]} =
          parse_lines(["package p1.p2;",
                       "import \"a/b/c.proto\";"]).
  
  generates_correct_absolute_names_test() ->
      {ok, Elems} = parse_lines(["message m1 {"
  