You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, the comparison canonical_extjson seems to have been generated from the BSON, meaning that the tests succeed for the wrong reason -- they are regular string tests, not code tests.
Likewise, all of the decodeErrors tests are for regular strings, not code, despite the descriptions.
The text was updated successfully, but these errors were encountered:
japhb
changed the title
BSON corpus code test is partially testing the wrong type
BSON corpus code and symbol tests are partially testing the wrong types
Jul 19, 2021
ShaneHarvey
changed the title
BSON corpus code and symbol tests are partially testing the wrong types
DRIVERS-1859 BSON corpus code and symbol tests are partially testing the wrong types
Jul 19, 2021
In https://github.com/mongodb/specifications/blob/master/source/bson-corpus/tests/code.json starting with the fourth test (line 21 and following), the tests switch from correctly testing BSON type 0x0D (JavaScript code) to incorrectly testing BSON type 0x02 (regular strings).
Unfortunately, the comparison
canonical_extjson
seems to have been generated from the BSON, meaning that the tests succeed for the wrong reason -- they are regular string tests, not code tests.Likewise, all of the
decodeErrors
tests are for regular strings, not code, despite the descriptions.The text was updated successfully, but these errors were encountered: