diff options
Diffstat (limited to 'jstests/core/geo8.js')
-rw-r--r-- | jstests/core/geo8.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/jstests/core/geo8.js b/jstests/core/geo8.js new file mode 100644 index 00000000000..301f3bcc0d1 --- /dev/null +++ b/jstests/core/geo8.js @@ -0,0 +1,13 @@ + +t = db.geo8 +t.drop() + +t.insert( { loc : [ 5 , 5 ] } ) +t.insert( { loc : [ 5 , 6 ] } ) +t.insert( { loc : [ 5 , 7 ] } ) +t.insert( { loc : [ 4 , 5 ] } ) +t.insert( { loc : [ 100 , 100 ] } ) + +t.ensureIndex( { loc : "2d" } ) + +t.runCommand( "geoWalk" ); |