diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-09-11 14:16:54 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-09-11 14:16:54 -0400 |
commit | 48797ed11874594d2accdfaf50f28663d9edc028 (patch) | |
tree | 08b4adb8dd9c5dd79f2e9b28ba8c7060e42ef86c /jstests/ne1.js | |
parent | 6d48c898513988d4e69fef26c00fce76f8cb9f8b (diff) | |
download | mongo-48797ed11874594d2accdfaf50f28663d9edc028.tar.gz |
some tests MINOR
Diffstat (limited to 'jstests/ne1.js')
-rw-r--r-- | jstests/ne1.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jstests/ne1.js b/jstests/ne1.js new file mode 100644 index 00000000000..e1c5656b5c8 --- /dev/null +++ b/jstests/ne1.js @@ -0,0 +1,11 @@ + +t = db.ne1; +t.drop(); + +t.save( { x : 1 } ); +t.save( { x : 2 } ); +t.save( { x : 3 } ); + +assert.eq( 2 , t.find( { x : { $ne : 2 } } ).itcount() , "A" ); +t.ensureIndex( { x : 1 } ); +assert.eq( 2 , t.find( { x : { $ne : 2 } } ).itcount() , "B" ); |