Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
apstndb committed Nov 27, 2024
1 parent a21d6cd commit 3ea5e4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ func TestStructPrintingWithTags(t *testing.T) {
}

func TestStructPrintingWithOmitEmpty(t *testing.T) {
type Bar struct{ StringField string }
type Bar struct {
StringField string
IntField int
}

type Foo struct {
StringField string
StringPtr *string
Expand All @@ -182,7 +186,7 @@ func TestStructPrintingWithOmitEmpty(t *testing.T) {
want string
}{
{
name: "all set",
name: "set",
foo: Foo{
StringField: "foo",
StringPtr: &stringVal,
Expand Down

0 comments on commit 3ea5e4a

Please sign in to comment.