5
// there are two numeric types int he db; make sure it handles them right
10
t.save( { a : 2.9 } );
12
t.save( { a : 1.9 } );
14
t.save( { a : 4.9 } );
15
t.save( { a : 2.91 } );
17
for( var pass = 0; pass < 2; pass++ ) {
19
var c = t.find().sort({a:1});
21
while( c.hasNext() ) {
23
assert( current.a > last );
27
assert( t.find({a:3}).count() == 1 );
28
assert( t.find({a:3.0}).count() == 1 );
29
assert( t.find({a:3.0}).length() == 1 );
34
assert(t.validate().valid);