mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
some sanity tests
This commit is contained in:
parent
0cbd5b6a37
commit
81ff09077c
@ -76,3 +76,12 @@ t.ensureIndex( { loc : "2d" , b : 1 } )
|
||||
assert.eq( 2 , t.getIndexKeys().length , "setup 4b" )
|
||||
|
||||
testFiltering( "loc and b" );
|
||||
|
||||
|
||||
q = { loc : { $near : [ 50 , 50 ] } }
|
||||
assert.eq( 100 , t.find( q ).limit(100).itcount() , "D1" )
|
||||
assert.eq( 100 , t.find( q ).limit(100).count() , "D2" )
|
||||
|
||||
assert.eq( 20 , t.find( q ).limit(20).itcount() , "D3" )
|
||||
assert.eq( 20 , t.find( q ).limit(20).size() , "D4" )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user