0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/in6.js
2010-07-08 00:55:42 -07:00

14 lines
227 B
JavaScript

t = db.jstests_in6;
t.drop();
t.save( {} );
function doTest() {
assert.eq.automsg( "1", "t.count( {i:null} )" );
assert.eq.automsg( "1", "t.count( {i:{$in:[null]}} )" );
}
doTest();
t.ensureIndex( {i:1} );
doTest();