mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
14 lines
227 B
JavaScript
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();
|