summaryrefslogtreecommitdiff
path: root/jstests/core/geo_box1_noindex.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_box1_noindex.js')
-rw-r--r--jstests/core/geo_box1_noindex.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/geo_box1_noindex.js b/jstests/core/geo_box1_noindex.js
index 36e932105a6..a953149c59f 100644
--- a/jstests/core/geo_box1_noindex.js
+++ b/jstests/core/geo_box1_noindex.js
@@ -5,21 +5,21 @@ t.drop();
num = 0;
for (x = 0; x <= 20; x++) {
for (y = 0; y <= 20; y++) {
- o = {
- _id: num++,
- loc: [x, y]
- };
+ o = {_id: num++, loc: [x, y]};
t.save(o);
}
}
-searches = [[[1, 2], [4, 5]], [[1, 1], [2, 2]], [[0, 2], [4, 5]], [[1, 1], [2, 8]], ];
+searches = [
+ [[1, 2], [4, 5]],
+ [[1, 1], [2, 2]],
+ [[0, 2], [4, 5]],
+ [[1, 1], [2, 8]],
+];
for (i = 0; i < searches.length; i++) {
b = searches[i];
- q = {
- loc: {$within: {$box: b}}
- };
+ q = {loc: {$within: {$box: b}}};
numWanted = (1 + b[1][0] - b[0][0]) * (1 + b[1][1] - b[0][1]);
assert.eq(numWanted, t.find(q).itcount(), "itcount: " + tojson(q));
printjson(t.find(q).explain());