summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/geo_near_random1.js
blob: 37051468a5eacc58c6745412a08e7569390da9df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// this tests all points using $near
(function() {
"use strict";
load("jstests/libs/geo_near_random.js");

const conn = MongoRunner.runMongod();
assert.neq(null, conn, "mongod failed to start.");

var test = new GeoNearRandomTest("weekly.geo_near_random1", conn.getDB("test"));

test.insertPts(1000);

test.testPt([0, 0]);
test.testPt(test.mkPt());
test.testPt(test.mkPt());
test.testPt(test.mkPt());
test.testPt(test.mkPt());

MongoRunner.stopMongod(conn);
})();