Skip to content

Commit 5fa9f3b

Browse files
author
Thomas Geulen
committed
Fix the test for "inline, omitempty"
1 parent 713c5b4 commit 5fa9f3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bson/encode_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,11 +819,13 @@ func reflectionEncoderTest(t *testing.T) {
819819
{
820820
"inline, omitempty",
821821
struct {
822-
A string `bson:",omitempty,inline"`
822+
A string
823+
Foo zeroTest `bson:"omitempty,inline"`
823824
}{
824-
A: "",
825+
A: "bar",
826+
Foo: zeroTest{true},
825827
},
826-
docToBytes(NewDocument()),
828+
docToBytes(NewDocument(EC.String("a", "bar"))),
827829
nil,
828830
},
829831
{

0 commit comments

Comments
 (0)