0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

Merge branch 'master' of git@github.com:mongodb/mongo

This commit is contained in:
Eliot Horowitz 2009-04-21 14:31:42 -04:00
commit b28510fb18

View File

@ -28,3 +28,17 @@ assert.eq( 2, t.find().count() );
t.save( { b: 4 } );
t.save( { b: 4 } );
assert.eq( 3, t.find().count() );
t.drop();
t.ensureIndex( { a: 1, b: -1 }, true );
t.save( { a: 2, b: 3 } );
t.save( { a: 2, b: 3 } );
t.save( { a: 2, b: 4 } );
t.save( { a: 1, b: 3 } );
assert.eq( 3, t.find().count() );
t.drop();
t.ensureIndex( { a: 1 }, true );
t.save( { a: [ 2, 3 ] } );
t.save( { a: 2 } );
assert.eq( 1, t.find().count() );