blob: b401e6447cde34e0e14f8ae64fabe18847ce87e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// this tests all points using $near
load("jstests/libs/geo_near_random.js");
load( "jstests/libs/slow_weekly_util.js" )
testServer = new SlowWeeklyMongod( "geo_near_random1" )
db = testServer.getDB( "test" );
var test = new GeoNearRandomTest("weekly.geo_near_random1");
test.insertPts(1000);
test.testPt([0,0]);
test.testPt(test.mkPt());
test.testPt(test.mkPt());
test.testPt(test.mkPt());
test.testPt(test.mkPt());
testServer.stop();
|