diff --git a/test/protox/parse_test.exs b/test/protox/parse_test.exs index ffd0b43..88ba602 100644 --- a/test/protox/parse_test.exs +++ b/test/protox/parse_test.exs @@ -9,7 +9,7 @@ defmodule Protox.ParseTest do end test "Parse FileDescriptorSet, protobuf 3 enums", %{enums: enums} do - {_, constants} = Enum.find(enums, fn {name, _} -> name == Abc.Def.ForeignEnum end) + {_, constants} = Enum.find(enums, fn {name, _} -> name == Abc.Def.MyForeignEnum end) assert constants == [{0, :FOREIGN_ZERO}, {1, :FOREIGN_ONE}, {1, :FOREIGN_ONE_BIS}] {_, constants} = Enum.find(enums, fn {name, _} -> name == Abc.Def.Proto3.NestedEnum end) @@ -26,7 +26,8 @@ defmodule Protox.ParseTest do assert field(fs, 5) == {:optional, :oneof_1_double, {:oneof, :oneof_1}, :double} assert field(fs, 6) == - {:optional, :oneof_1_foreign_enum, {:oneof, :oneof_1}, {:enum, Abc.Def.ForeignEnum}} + {:optional, :oneof_1_foreign_enum, {:oneof, :oneof_1}, + {:enum, Abc.Def.MyForeignEnum}} assert field(fs, 7) == {:optional, :oneof_1_proto2a, {:oneof, :oneof_1}, {:message, Proto2A}} diff --git a/test/samples/README.md b/test/samples/README.md index 95199fa..22e4c95 100644 --- a/test/samples/README.md +++ b/test/samples/README.md @@ -3,5 +3,5 @@ to generate `file_descriptor_set.bin`. This file is used by the Protox.Parse test. The following command is used to generate this file: ``` -protoc --include_imports -o ./file_descriptor_set.bin ./*.proto +protoc --include_imports -o ./file_descriptor_set.bin ./proto2_extension.proto ./proto2.proto ./proto3.proto ``` diff --git a/test/samples/file_descriptor_set.bin b/test/samples/file_descriptor_set.bin index 27bd55e..88720fe 100644 Binary files a/test/samples/file_descriptor_set.bin and b/test/samples/file_descriptor_set.bin differ