8
assert.eq( 1 , t.find( { a : { $in : [ 1 ] } } ).itcount() , "A" );
9
assert.eq( 1 , t.find( { a : { $in : [ 2 ] } } ).itcount() , "B" );
10
assert.eq( 2 , t.find( { a : { $in : [ 1 , 2 ] } } ).itcount() , "C" );
12
t.ensureIndex( { a : 1 } );
14
assert.eq( 1 , t.find( { a : { $in : [ 1 ] } } ).itcount(), "D" );
15
assert.eq( 1 , t.find( { a : { $in : [ 2 ] } } ).itcount() , "E" );
16
assert.eq( 2 , t.find( { a : { $in : [ 1 , 2 ] } } ).itcount() , "F" );
18
assert.eq( 0 , t.find( { a : { $in : [] } } ).itcount() , "G" );