Permalink
Browse files

SERVER-3264 additional test cases

  • Loading branch information...
1 parent 7a8fa52 commit 44a265b7455e807c8da55324c0c0e5741cf7bfb3 @astaple astaple committed Sep 13, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 jstests/nin2.js
View
@@ -31,6 +31,9 @@ assert.eq( 1, t.count( {foo:null} ) );
assert.eq( 0, t.count( {foo:{$ne:null}} ) );
assert.eq( 0, t.count( {foo:1} ) );
+// Check matching empty set.
+checkOperators( [], false );
+
// Check matching null against missing null field.
checkOperators( [null], true );
checkOperators( [null,1], true );
@@ -57,3 +60,8 @@ t.remove();
t.save( {foo:[]} );
// Check exact match of embedded empty array.
checkOperators( [[]], true );
+
+t.remove();
+t.save( {foo:'foo'} );
+// Check regex match.
+checkOperators( [/o/], true );

0 comments on commit 44a265b

Please sign in to comment.