From 95b9d930fb32a4bbac7ba48cb5723c38d9723091 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 3 Mar 2010 01:46:31 -0800 Subject: SERVER-692 replace startKey/endKey with indexBounds --- jstests/in3.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 jstests/in3.js (limited to 'jstests/in3.js') 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 ); -- cgit v1.2.1