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
Copy file name to clipboardExpand all lines: test/node/double.test.ts
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
import*asBSONfrom'../register-bson';
2
2
constDouble=BSON.Double;
3
3
4
+
constBSON_DOUBLE_TYPE_INDICATOR=0x01;
5
+
constBSON_INT_TYPE_INDICATOR=0x10;
6
+
4
7
describe('BSON Double Precision',function(){
5
8
context('class Double',function(){
6
9
describe('constructor()',function(){
@@ -78,14 +81,15 @@ describe('BSON Double Precision', function () {
78
81
});
79
82
});
80
83
81
-
it('NODE-4335: does not preserve -0 in serialize-deserialize roundtrip if JS number is used',function(){
82
-
// TODO (NODE-4335): -0 should be serialized as double
83
-
// This test is demonstrating the behavior of -0 being serialized as an int32 something we do NOT want to unintentionally change, but may want to change in the future, which the above ticket serves to track.
84
+
it('does preserve -0 in serialize as a double',function(){
0 commit comments