diff options
Diffstat (limited to 'jstests/core/cursor1.js')
-rw-r--r-- | jstests/core/cursor1.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/cursor1.js b/jstests/core/cursor1.js index 65c62e64f91..c98bec5044c 100644 --- a/jstests/core/cursor1.js +++ b/jstests/core/cursor1.js @@ -3,18 +3,18 @@ t = db.cursor1; t.drop(); big = ""; -while ( big.length < 50000 ) +while (big.length < 50000) big += "asdasdasdasdsdsdadsasdasdasD"; -num = Math.ceil( 10000000 / big.length ); +num = Math.ceil(10000000 / big.length); -for ( var i=0; i<num; i++ ){ - t.save( { num : i , str : big } ); +for (var i = 0; i < num; i++) { + t.save({num: i, str: big}); } -assert.eq( num , t.find().count() ); -assert.eq( num , t.find().itcount() ); +assert.eq(num, t.find().count()); +assert.eq(num, t.find().itcount()); -assert.eq( num / 2 , t.find().limit(num/2).itcount() ); +assert.eq(num / 2, t.find().limit(num / 2).itcount()); -t.drop(); // save some space +t.drop(); // save some space |