We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cfa339 commit b15c218Copy full SHA for b15c218
bson/primitive/primitive_test.go
@@ -49,6 +49,8 @@ func TestPrimitiveIsZero(t *testing.T) {
49
nonzero zeroer
50
}{
51
{"binary", Binary{}, Binary{Data: []byte{0x01, 0x02, 0x03}, Subtype: 0xFF}},
52
+ {"decimal128", Decimal128{}, NewDecimal128(1, 2)},
53
+ {"objectID", ObjectID{}, NewObjectID()},
54
{"regex", Regex{}, Regex{Pattern: "foo", Options: "bar"}},
55
{"dbPointer", DBPointer{}, DBPointer{DB: "foobar", Pointer: ObjectID{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C}}},
56
{"timestamp", Timestamp{}, Timestamp{T: 12345, I: 67890}},
0 commit comments