Skip to content

Commit

Permalink
chore: Sync BSON Corpus spec tests (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken authored Jul 17, 2020
1 parent 5e35d1a commit 55f529c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/node/bson_corpus_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const skipBSON = {

const skipExtendedJSON = {
'Timestamp with high-order bit set on both seconds and increment':
'Current BSON implementation of timestamp/long cannot hold these values - 1 too large.',
'Timestamp with high-order bit set on both seconds and increment (not UINT32_MAX)':
'Current BSON implementation of timestamp/long cannot hold these values - 1 too large.'
};

Expand Down
5 changes: 5 additions & 0 deletions test/node/specs/bson-corpus/timestamp.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"description": "Timestamp with high-order bit set on both seconds and increment",
"canonical_bson": "10000000116100FFFFFFFFFFFFFFFF00",
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 4294967295, \"i\" : 4294967295} } }"
},
{
"description": "Timestamp with high-order bit set on both seconds and increment (not UINT32_MAX)",
"canonical_bson": "1000000011610000286BEE00286BEE00",
"canonical_extjson": "{\"a\" : {\"$timestamp\" : {\"t\" : 4000000000, \"i\" : 4000000000} } }"
}
],
"decodeErrors": [
Expand Down

0 comments on commit 55f529c

Please sign in to comment.