Files
mongo/jstests/core/find7.js
Randolph Tan 5595b94560 SERVER-12127 migrate js tests to jscore suite when not related to writes
Moved test jstest/[a-i].js -> jstests/core/ and made changes to comply with write command api
2014-02-28 16:26:33 -05:00

9 lines
201 B
JavaScript

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" );