diff options
Diffstat (limited to 'jstests/core/find7.js')
-rw-r--r-- | jstests/core/find7.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/core/find7.js b/jstests/core/find7.js new file mode 100644 index 00000000000..ca4c7d449bf --- /dev/null +++ b/jstests/core/find7.js @@ -0,0 +1,8 @@ +t = db.find7; +t.drop(); + +x = { "_id" : { "d" : 3649, "w" : "signed" }, "u" : { "3649" : 5 } }; +t.insert(x ); +assert.eq( x , t.findOne() , "A1" ); +assert.eq( x , t.findOne( { _id : x._id } ) , "A2" ); + |