From 6bb0430182cfd904622e4a07c377520b883b77b9 Mon Sep 17 00:00:00 2001 From: Matt Dale <9760375+matthewdale@users.noreply.github.com> Date: Fri, 16 Jun 2023 09:03:10 -0700 Subject: [PATCH] Use a number smaller than max/min int32 in zeros with large exponent tests. --- source/bson-corpus/tests/decimal128-1.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/bson-corpus/tests/decimal128-1.json b/source/bson-corpus/tests/decimal128-1.json index fa20a997f1..8d368ca01d 100644 --- a/source/bson-corpus/tests/decimal128-1.json +++ b/source/bson-corpus/tests/decimal128-1.json @@ -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\"}}" } ]