Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

some tests MINOR

  • Loading branch information...
commit 48797ed11874594d2accdfaf50f28663d9edc028 1 parent 6d48c89
@erh erh authored
Showing with 16 additions and 0 deletions.
  1. +5 −0 jstests/error3.js
  2. +11 −0 jstests/ne1.js
View
5 jstests/error3.js
@@ -0,0 +1,5 @@
+
+db.runCommand( "forceerror" );
+assert.eq( "forced error" , db.getLastError() );
+db.runCommand( "switchtoclienterrors" );
+assert.isnull( db.getLastError() );
View
11 jstests/ne1.js
@@ -0,0 +1,11 @@
+
+t = db.ne1;
+t.drop();
+
+t.save( { x : 1 } );
+t.save( { x : 2 } );
+t.save( { x : 3 } );
+
+assert.eq( 2 , t.find( { x : { $ne : 2 } } ).itcount() , "A" );
+t.ensureIndex( { x : 1 } );
+assert.eq( 2 , t.find( { x : { $ne : 2 } } ).itcount() , "B" );
Please sign in to comment.
Something went wrong with that request. Please try again.