Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

better assert msgs

  • Loading branch information...
commit e6e21350a952880285babe5357e1922e3570f325 1 parent a7da649
@erh erh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 jstests/arrayfind1.js
View
4 jstests/arrayfind1.js
@@ -33,8 +33,8 @@ t.find( { "a.x" : 1 } ).count();
t.find( { "a.x" : { $gt : 1 } } ).count();
res = t.find( { "a" : { $elemMatch : { x : { $gt : 2 } } } } ).explain()
-assert( res.cursor.indexOf( "BtreeC" ) == 0 , "C1" );
-assert.eq( 2 , t.find( { a : { $elemMatch : { x : { $gt : 2 } } } } ).count() , "D2" );
+assert( res.cursor.indexOf( "BtreeC" ) == 0 , "D2" );
+assert.eq( 2 , t.find( { a : { $elemMatch : { x : { $gt : 2 } } } } ).count() , "D3" );
assert.eq( 2 , t.find( { a : { $ne:2, $elemMatch : { x : { $gt : 2 } } } } ).count() , "E1" );
assert( t.find( { a : { $ne:2, $elemMatch : { x : { $gt : 2 } } } } ).explain().cursor.indexOf( "BtreeC" ) == 0 , "E2" );
Please sign in to comment.
Something went wrong with that request. Please try again.