summaryrefslogtreecommitdiff
path: root/jstests/core/geo_polygon1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_polygon1.js')
-rw-r--r--jstests/core/geo_polygon1.js16
1 files changed, 6 insertions, 10 deletions
diff --git a/jstests/core/geo_polygon1.js b/jstests/core/geo_polygon1.js
index d1dbf0c19dc..45f0eb71d64 100644
--- a/jstests/core/geo_polygon1.js
+++ b/jstests/core/geo_polygon1.js
@@ -8,10 +8,7 @@ t.drop();
num = 0;
for (x = 1; x < 9; x++) {
for (y = 1; y < 9; y++) {
- o = {
- _id: num++,
- loc: [x, y]
- };
+ o = {_id: num++, loc: [x, y]};
t.save(o);
}
}
@@ -29,15 +26,14 @@ assert.eq(num, t.find({loc: {"$within": {"$polygon": boxBounds}}}).count(), "Bou
// Make sure we can add object-based polygons
assert.eq(
- num,
- t.find({loc: {$within: {$polygon: {a: [-10, -10], b: [-10, 10], c: [10, 10], d: [10, -10]}}}})
- .count());
+ num, t.find({
+ loc: {$within: {$polygon: {a: [-10, -10], b: [-10, 10], c: [10, 10], d: [10, -10]}}}
+ }).count());
// Look in a box much bigger than the one we have data in
boxBounds = [[-100, -100], [-100, 100], [100, 100], [100, -100]];
-assert.eq(num,
- t.find({loc: {"$within": {"$polygon": boxBounds}}}).count(),
- "Big Bounding Box Test");
+assert.eq(
+ num, t.find({loc: {"$within": {"$polygon": boxBounds}}}).count(), "Big Bounding Box Test");
t.drop();