Skip to content

Commit

Permalink
chore: genproto_test: Use lower_snake_case in expected proto output.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 committed Oct 10, 2023
1 parent fb783ec commit 97091dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tm2/pkg/amino/genproto/genproto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ func TestBasic(t *testing.T) {
obj := sm1.StructSM{}
p3message := p3c.GenerateProto3MessagePartial(&p3doc, reflect.TypeOf(obj))
assert.Equal(t, p3message.Print(), `message StructSM {
sint64 FieldA = 1;
string FieldB = 2;
submodule2.StructSM2 FieldC = 3;
sint64 field_a = 1;
string field_b = 2;
submodule2.StructSM2 field_c = 3;
}
`)

Expand All @@ -38,8 +38,8 @@ import "github.com/gnolang/gno/tm2/pkg/amino/genproto/example/submodule2/submodu
// messages
message StructSM {
sint64 FieldA = 1;
string FieldB = 2;
submodule2.StructSM2 FieldC = 3;
sint64 field_a = 1;
string field_b = 2;
submodule2.StructSM2 field_c = 3;
}`)
}

0 comments on commit 97091dc

Please sign in to comment.