diff options
author | Aaron <aaron@10gen.com> | 2010-03-03 01:46:31 -0800 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2010-03-03 01:46:31 -0800 |
commit | 95b9d930fb32a4bbac7ba48cb5723c38d9723091 (patch) | |
tree | cad1314663207a9bbad465d466cde5da1d849444 /jstests/in3.js | |
parent | 2691d5bde9a9f5b784a0223d3b262edc4e9af5cc (diff) | |
download | mongo-95b9d930fb32a4bbac7ba48cb5723c38d9723091.tar.gz |
SERVER-692 replace startKey/endKey with indexBounds
Diffstat (limited to 'jstests/in3.js')
-rw-r--r-- | jstests/in3.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jstests/in3.js b/jstests/in3.js new file mode 100644 index 00000000000..2b91814b14c --- /dev/null +++ b/jstests/in3.js @@ -0,0 +1,6 @@ +t = db.jstests_in3; + +t.drop(); +t.ensureIndex( {i:1} ); +assert.eq( [ [ {i:3}, {i:3} ] ], t.find( {i:{$in:[3]}} ).explain().indexBounds ); +assert.eq( [ [ {i:3}, {i:3} ], [ {i:6}, {i:6} ] ], t.find( {i:{$in:[3,6]}} ).explain().indexBounds ); |