7
t.save( { a : 1 , b : 2 } );
9
assert.eq( 2 , t.find( { a : 1 } ).itcount() , "A" );
10
assert.eq( 2 , t.find( { a : 1 } ).count() , "B" );
12
assert.eq( 2 , t.find( { a : 1 } , { b : 1 } ).itcount() , "C" );
13
assert.eq( 2 , t.find( { a : 1 } , { b : 1 } ).count() , "D" );
19
assert.eq( 1 , t.find( { a : 1 } ).itcount() , "E" );
20
assert.eq( 1 , t.find( { a : 1 } ).count() , "F" );
22
assert.eq( 1 , t.find( { a : 1 } , { b : 1 } ).itcount() , "G" );
23
assert.eq( 1 , t.find( { a : 1 } , { b : 1 } ).count() , "H" );