-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Description
I clone and run mix test and found 2 tests was broken:
Excluding tags: [integration: true]
..........................................................................................................................................................................
1) test generate/2 generates enum type messages (Protobuf.Protoc.Generator.EnumTest)
test/protobuf/protoc/generator/enum_test.exs:7
Assertion with =~ failed
code: assert msg =~ "field :A, 0\n field :B, 1\n"
left: "defmodule EnumFoo do\n @moduledoc false\n use Protobuf, enum: true\n@type t :: integer | :A | :B\n\n\n field :A, 0\n\n field :B, 1\n\nend\n"
right: "field :A, 0\n field :B, 1\n"
stacktrace:
test/protobuf/protoc/generator/enum_test.exs:24: (test)
............................................................***..........................................................
2) test generate/2 supports nested enum messages (Protobuf.Protoc.Generator.MessageTest)
test/protobuf/protoc/generator/message_test.exs:369
Assertion with =~ failed
code: assert msg =~ "field :a, 0\n field :b, 1\n"
left: "defmodule Foo.Nested.EnumFoo do\n @moduledoc false\n use Protobuf, enum: true\n@type t :: integer | :a | :b\n\n\n field :a, 0\n\n field :b, 1\n\nend\n"
right: "field :a, 0\n field :b, 1\n"
stacktrace:
test/protobuf/protoc/generator/message_test.exs:394: (test)
.............................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.....................................................................................................
OK, passed 100 tests
.
Finished in 1.4 seconds
19 doctests, 13 properties, 287 tests, 2 failures, 4 excluded, 3 skipped
Randomized with seed 236945
Metadata
Metadata
Assignees
Labels
No labels