Browse files

SERVER-2902 test

  • Loading branch information...
1 parent 3dd9898 commit 57701af677e59a3a328ba79a4bd04fa915fca146 @astaple astaple committed Jul 31, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 jstests/exists9.js
View
5 jstests/exists9.js
@@ -25,8 +25,7 @@ assert.eq( 1, t.count( {a:{$exists:false}} ) );
t.ensureIndex( {a:1} );
assert.eq( 1, t.find( {a:{$exists:true}} ).hint( {a:1} ).itcount() );
assert.eq( 1, t.find( {a:{$exists:false}} ).hint( {a:1} ).itcount() );
-// The empty array will be scanned, but not returned.
-assert.eq( 2, t.find( {a:{$exists:false}} ).hint( {a:1} ).explain().nscanned );
+assert.eq( 1, t.find( {a:{$exists:false}} ).hint( {a:1} ).explain().nscanned );
t.drop();
@@ -39,6 +38,4 @@ assert.eq( 1, t.count( {'a.0':{$exists:false}} ) );
// With index.
t.ensureIndex( {'a.0':1} );
assert.eq( 1, t.find( {'a.0':{$exists:true}} ).hint( {'a.0':1} ).itcount() );
-if ( 0 ) { // SERVER-2902
assert.eq( 1, t.find( {'a.0':{$exists:false}} ).hint( {'a.0':1} ).itcount() );
-}

0 comments on commit 57701af

Please sign in to comment.