blob: 41ee78c5117a228c6628cb8c6a76bed8d377122c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
t = db.distinct2;
t.drop();
t.save({a:null});
assert.eq( 0 , t.distinct('a.b').length , "A" );
t.drop();
t.save( { a : 1 } );
assert.eq( [1] , t.distinct( "a" ) , "B" );
t.save( {} )
assert.eq( [1] , t.distinct( "a" ) , "C" );
|