Skip to content

Commit

Permalink
SERVER-1735 add a real field value test case
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Jun 3, 2011
1 parent 48ca7d0 commit ba9daf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jstests/type2.js
Expand Up @@ -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}} ) );
}

Expand Down

0 comments on commit ba9daf0

Please sign in to comment.