diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-09-21 17:03:38 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-09-21 21:14:55 -0400 |
commit | 33bda54e9aa42690ebfd312bc164f8b613327e54 (patch) | |
tree | 51ad2417a3adececf9d5f96318f94502146579f9 /jstests/query1.js | |
parent | 357f336ff9622332c47e74b9945f5c9f3643c6da (diff) | |
download | mongo-33bda54e9aa42690ebfd312bc164f8b613327e54.tar.gz |
can put $comment in normal query SERVER-3789
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 c3e276f4330..8fa402cda65 100644 --- a/jstests/query1.js +++ b/jstests/query1.js @@ -21,3 +21,6 @@ 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" ) + +assert.eq( 3 , t.find( { "$comment" : "yo ho ho" } ).itcount() , "C1" ) +assert.eq( 3 , t.find( { "$comment" : "this is a test" } ).count() , "C2" ) |