summaryrefslogtreecommitdiff
path: root/jstests/in6.js
blob: f114d93442a78ac2315b63c35f57b03b8f63c1b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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();