Skip to content

Commit

Permalink
Use a number smaller than max/min int32 in zeros with large exponent …
Browse files Browse the repository at this point in the history
…tests.
  • Loading branch information
matthewdale committed Jun 16, 2023
1 parent 186bc07 commit 6bb0430
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/bson-corpus/tests/decimal128-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -316,25 +316,25 @@
{
"description": "Clamped zeros with a large positive exponent",
"canonical_bson": "180000001364000000000000000000000000000000FE5F00",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"0E+2147483647\"}}",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"0E+2000000000\"}}",
"canonical_extjson": "{\"d\" : {\"$numberDecimal\" : \"0E+6111\"}}"
},
{
"description": "Clamped zeros with a large negative exponent",
"canonical_bson": "180000001364000000000000000000000000000000000000",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"0E-2147483648\"}}",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"0E-2000000000\"}}",
"canonical_extjson": "{\"d\" : {\"$numberDecimal\" : \"0E-6176\"}}"
},
{
"description": "Clamped negative zeros with a large positive exponent",
"canonical_bson": "180000001364000000000000000000000000000000FEDF00",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"-0E+2147483647\"}}",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"-0E+2000000000\"}}",
"canonical_extjson": "{\"d\" : {\"$numberDecimal\" : \"-0E+6111\"}}"
},
{
"description": "Clamped negative zeros with a large negative exponent",
"canonical_bson": "180000001364000000000000000000000000000000008000",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"-0E-2147483648\"}}",
"degenerate_extjson": "{\"d\" : {\"$numberDecimal\" : \"-0E-2000000000\"}}",
"canonical_extjson": "{\"d\" : {\"$numberDecimal\" : \"-0E-6176\"}}"
}
]
Expand Down

0 comments on commit 6bb0430

Please sign in to comment.