summaryrefslogtreecommitdiff
path: root/jstests/geo2.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-02-26 00:06:26 -0500
committerEliot Horowitz <eliot@10gen.com>2010-02-26 00:06:26 -0500
commit329423dbc0c0041d265579f781c3bbd4f884ceff (patch)
treec5ee988f1687c01ec91ecbe5876ca42c095ea8ba /jstests/geo2.js
parent22246ef94db3bce9407665d735faa8553f21dcc9 (diff)
downloadmongo-329423dbc0c0041d265579f781c3bbd4f884ceff.tar.gz
edge case fix
Diffstat (limited to 'jstests/geo2.js')
-rw-r--r--jstests/geo2.js10
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" );