@@ -451,7 +451,7 @@ func TestExtJSONParserAllTypes(t *testing.T) {
451
451
, "CodeWithScope" : { "$code": "function() {}", "$scope": { "x": 1 } }
452
452
, "EmptySubdocument" : {}
453
453
, "Subdocument" : { "foo": "bar", "baz": { "$numberInt": "42" } }
454
- , "Array" : [{"$numberInt": "1"}, {"$numberLong": "2"}, {"$numberDouble": "3"}, 4, 5.0]
454
+ , "Array" : [{"$numberInt": "1"}, {"$numberLong": "2"}, {"$numberDouble": "3"}, 4, "string", 5.0]
455
455
, "Timestamp" : { "$timestamp": { "t": 42, "i": 1 } }
456
456
, "RegularExpression" : { "$regularExpression": { "pattern": "foo*", "options": "ix" } }
457
457
, "DatetimeEpoch" : { "$date": { "$numberLong": "0" } }
@@ -572,6 +572,7 @@ func TestExtJSONParserAllTypes(t *testing.T) {
572
572
{typ : bsontype .Int64 , val : & extJSONValue {t : bsontype .String , v : "2" }},
573
573
{typ : bsontype .Double , val : & extJSONValue {t : bsontype .String , v : "3" }},
574
574
{typ : bsontype .Int32 , val : & extJSONValue {t : bsontype .Int32 , v : int32 (4 )}},
575
+ {typ : bsontype .String , val : & extJSONValue {t : bsontype .String , v : "string" }},
575
576
{typ : bsontype .Double , val : & extJSONValue {t : bsontype .Double , v : 5.0 }},
576
577
},
577
578
},
0 commit comments