diff options
Diffstat (limited to 'jstests/group6.js')
-rw-r--r-- | jstests/group6.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/group6.js b/jstests/group6.js index 8d738d4..b77a37a 100644 --- a/jstests/group6.js +++ b/jstests/group6.js @@ -29,3 +29,4 @@ for( i = 1; i <= 10; ++i ) { assert.eq.automsg( "55", "t.group( {key:'y', reduce:function(doc,out){ out.i += doc.i; }, initial:{i:0} } )[ 0 ].i" ); +assert.eq.automsg( "NumberLong(10)", "t.group( {$reduce: function(doc, prev) { prev.count += 1; }, initial: {count: new NumberLong(0) }} )[ 0 ].count" );
\ No newline at end of file |