diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2014-02-19 12:45:53 -0500 |
---|---|---|
committer | Matt Kangas <matt.kangas@mongodb.com> | 2014-03-03 22:54:10 -0500 |
commit | 3660343e0b4627d2fee4afb89b74d32644d16d18 (patch) | |
tree | ffa571e0b73ce56d73c2ae23f458f0db772ef782 /jstests/proj_key1.js | |
parent | 9fae141a1f3fe652fa6002e47722c5ceb051cffb (diff) | |
download | mongo-3660343e0b4627d2fee4afb89b74d32644d16d18.tar.gz |
SERVER-12127 migrate js tests to jscore suite when not related to writes
Migrate js tests starting from j-z.
Include SERVER-12920 Update use_power_of_2.js
Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>
Diffstat (limited to 'jstests/proj_key1.js')
-rw-r--r-- | jstests/proj_key1.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/jstests/proj_key1.js b/jstests/proj_key1.js deleted file mode 100644 index ad944f71827..00000000000 --- a/jstests/proj_key1.js +++ /dev/null @@ -1,28 +0,0 @@ - -t = db.proj_key1; -t.drop(); - -as = [] - -for ( i=0; i<10; i++ ){ - as.push( { a : i } ) - t.insert( { a : i , b : i } ); -} - -assert( ! t.find( {} , { a : 1 } ).explain().indexOnly , "A1" ) - -t.ensureIndex( { a : 1 } ) - -assert( t.find( { a : { $gte : 0 } } , { a : 1 , _id : 0 } ).explain().indexOnly , "A2" ) - -assert( ! t.find( { a : { $gte : 0 } } , { a : 1 } ).explain().indexOnly , "A3" ) // because id _id - -// assert( t.find( {} , { a : 1 , _id : 0 } ).explain().indexOnly , "A4" ); // TODO: need to modify query optimier SERVER-2109 - -assert.eq( as , t.find( { a : { $gte : 0 } } , { a : 1 , _id : 0 } ).toArray() , "B1" ) -assert.eq( as , t.find( { a : { $gte : 0 } } , { a : 1 , _id : 0 } ).batchSize(2).toArray() , "B1" ) - - - - - |