diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-26 00:06:26 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-26 00:06:26 -0500 |
commit | 329423dbc0c0041d265579f781c3bbd4f884ceff (patch) | |
tree | c5ee988f1687c01ec91ecbe5876ca42c095ea8ba /jstests/geo2.js | |
parent | 22246ef94db3bce9407665d735faa8553f21dcc9 (diff) | |
download | mongo-329423dbc0c0041d265579f781c3bbd4f884ceff.tar.gz |
edge case fix
Diffstat (limited to 'jstests/geo2.js')
-rw-r--r-- | jstests/geo2.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/jstests/geo2.js b/jstests/geo2.js index c33a5de370c..113362e6cf4 100644 --- a/jstests/geo2.js +++ b/jstests/geo2.js @@ -34,12 +34,6 @@ function a( cur ){ } assert.eq( fast.stats.avgDistance , a( t.find( { loc : { $near : [ 50 , 50 ] } } ).limit(10) ) , "B1" ) - -print( "---" ) -query = t.find( { loc : { $near : [ 50 , 50 ] } } ).limit(10) -query.forEach( printjson ) - -print( "---" ) -query = t.find( { loc : { $near : [ 50 , 50 ] } } ).limit(3) -query.forEach( printjson ) +assert.close( 1.33333 , a( t.find( { loc : { $near : [ 50 , 50 ] } } ).limit(3) ) , "B2" ); +assert.close( fast.stats.avgDistance , a( t.find( { loc : { $near : [ 50 , 50 ] } } ).limit(10) ) , "B3" ); |