Skip to content

Commit ccd72de

Browse files
authored
DRIVERS-3095: Use extjson Infinity representation in float32 vector test (#1767)
1 parent fc495d5 commit ccd72de

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

source/bson-binary-vector/bson-binary-vector.md

+2
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@ See the [README](tests/README.md) for tests.
247247

248248
## Changelog
249249

250+
- 2025-03-07: Update tests to use Extended JSON representation of +/-Infinity. (DRIVERS-3095)
251+
250252
- 2025-02-04: Update validation for decoding into a FLOAT32 vector.
251253

252254
- 2024-11-01: BSON Binary Subtype 9 accepted DRIVERS-2926 (#1708)

source/bson-binary-vector/tests/float32.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
{
3333
"description": "Infinity Vector FLOAT32",
3434
"valid": true,
35-
"vector": ["-inf", 0.0, "inf"],
35+
"vector": [{"$numberDouble": "-Infinity"}, 0.0, {"$numberDouble": "Infinity"} ],
3636
"dtype_hex": "0x27",
3737
"dtype_alias": "FLOAT32",
3838
"padding": 0,

0 commit comments

Comments
 (0)