diff options
Diffstat (limited to 'jstests/query1.js')
-rw-r--r-- | jstests/query1.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/query1.js b/jstests/query1.js index 9b40054..c3e276f 100644 --- a/jstests/query1.js +++ b/jstests/query1.js @@ -18,3 +18,6 @@ t.find().forEach( assert.eq( num , 3 , "num" ) assert.eq( total , 8 , "total" ) + +assert.eq( 3 , t.find()._addSpecial( "$comment" , "this is a test" ).itcount() , "B1" ) +assert.eq( 3 , t.find()._addSpecial( "$comment" , "this is a test" ).count() , "B2" ) |