Permalink
Browse files

SERVER-1735 add a real field value test case

  • Loading branch information...
1 parent 48ca7d0 commit ba9daf00db064ef9a284f5b72bb3e43a0ca141bb @astaple astaple committed Jun 2, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 jstests/type2.js
View
@@ -5,11 +5,12 @@ t.drop();
t.save( {a:null} );
t.save( {} );
+t.save( {a:'a'} );
function test() {
assert.eq( 2, t.count( {a:null} ) );
assert.eq( 1, t.count( {a:{$type:10}} ) );
- assert.eq( 1, t.count( {a:{$exists:true}} ) );
+ assert.eq( 2, t.count( {a:{$exists:true}} ) );
assert.eq( 1, t.count( {a:{$exists:false}} ) );
}

0 comments on commit ba9daf0

Please sign in to comment.