summaryrefslogtreecommitdiff
path: root/jstests/arrayfind2.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-07-16 05:09:10 -0700
committerAaron <aaron@10gen.com>2010-07-16 05:09:10 -0700
commit94fab2e73fcdf50033b245ba7a9dd0174f253c27 (patch)
tree9fbf76c5da031cfba2297005e31bf86adae75559 /jstests/arrayfind2.js
parent5ca4354bd66cbd1b60fef2b7a612beb57faf746e (diff)
downloadmongo-94fab2e73fcdf50033b245ba7a9dd0174f253c27.tar.gz
SERVER-802 update explain format
Diffstat (limited to 'jstests/arrayfind2.js')
-rw-r--r--jstests/arrayfind2.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/arrayfind2.js b/jstests/arrayfind2.js
index 59bf2b0f531..94d77f14891 100644
--- a/jstests/arrayfind2.js
+++ b/jstests/arrayfind2.js
@@ -22,14 +22,14 @@ go( "no index" );
t.ensureIndex( { a : 1 } );
go( "index(a)" );
-assert.eq( [], t.find( { a : { $all : [ { $elemMatch : { x : 3 } } ] } } ).explain().indexBounds );
+assert.eq( {}, t.find( { a : { $all : [ { $elemMatch : { x : 3 } } ] } } ).explain().indexBounds );
t.ensureIndex( { "a.x": 1 } );
-assert.eq( [ [ {"a.x":3},{"a.x":3} ] ], t.find( { a : { $all : [ { $elemMatch : { x : 3 } } ] } } ).explain().indexBounds );
+assert.eq( {"a.x":[[3,3]]}, t.find( { a : { $all : [ { $elemMatch : { x : 3 } } ] } } ).explain().indexBounds );
// only first $elemMatch used to find bounds
-assert.eq( [ [ {"a.x":3},{"a.x":3} ] ], t.find( { a : { $all : [ { $elemMatch : { x : 3 } }, { $elemMatch : { y : 5 } } ] } } ).explain().indexBounds );
+assert.eq( {"a.x":[[3,3]]}, t.find( { a : { $all : [ { $elemMatch : { x : 3 } }, { $elemMatch : { y : 5 } } ] } } ).explain().indexBounds );
t.ensureIndex( { "a.x":1,"a.y":-1 } );
-assert.eq( [ [ {"a.x":3,"a.y":1.7976931348623157e+308},{"a.x":3,"a.y":4} ] ], t.find( { a : { $all : [ { $elemMatch : { x : 3, y : { $gt: 4 } } } ] } } ).explain().indexBounds );
+assert.eq( {"a.x":[[3,3]],"a.y":[[1.7976931348623157e+308,4]]}, t.find( { a : { $all : [ { $elemMatch : { x : 3, y : { $gt: 4 } } } ] } } ).explain().indexBounds );