From 714db727c06111e696be52b041e5e85b10ad9f91 Mon Sep 17 00:00:00 2001 From: Micah Scott Date: Fri, 7 Mar 2025 10:58:20 -0800 Subject: [PATCH] DRIVERS-3095: Use extjson Infinity representation in float32 test --- source/bson-binary-vector/bson-binary-vector.md | 2 ++ source/bson-binary-vector/tests/float32.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/source/bson-binary-vector/bson-binary-vector.md b/source/bson-binary-vector/bson-binary-vector.md index d46f6681a9..1b6fdaebbf 100644 --- a/source/bson-binary-vector/bson-binary-vector.md +++ b/source/bson-binary-vector/bson-binary-vector.md @@ -247,6 +247,8 @@ See the [README](tests/README.md) for tests. ## Changelog +- 2025-03-07: Update tests to use Extended JSON representation of +/-Infinity. (DRIVERS-3095) + - 2025-02-04: Update validation for decoding into a FLOAT32 vector. - 2024-11-01: BSON Binary Subtype 9 accepted DRIVERS-2926 (#1708) diff --git a/source/bson-binary-vector/tests/float32.json b/source/bson-binary-vector/tests/float32.json index 845f504ff3..72dafce10f 100644 --- a/source/bson-binary-vector/tests/float32.json +++ b/source/bson-binary-vector/tests/float32.json @@ -32,7 +32,7 @@ { "description": "Infinity Vector FLOAT32", "valid": true, - "vector": ["-inf", 0.0, "inf"], + "vector": [{"$numberDouble": "-Infinity"}, 0.0, {"$numberDouble": "Infinity"} ], "dtype_hex": "0x27", "dtype_alias": "FLOAT32", "padding": 0,