diff options
Diffstat (limited to 'jstests/core/or_inexact.js')
-rw-r--r-- | jstests/core/or_inexact.js | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/jstests/core/or_inexact.js b/jstests/core/or_inexact.js index 3e7e374d7f5..17aeea618b3 100644 --- a/jstests/core/or_inexact.js +++ b/jstests/core/or_inexact.js @@ -119,26 +119,26 @@ t.insert({_id: 1, pre: 4, loc: {type: "Point", coordinates: [0, 0]}}); cursor = t.find({ $or: [ { - pre: 3, - loc: { - $geoWithin: { - $geometry: { - type: "Polygon", - coordinates: [[[39, 4], [41, 4], [41, 6], [39, 6], [39, 4]]] - } - } - } + pre: 3, + loc: { + $geoWithin: { + $geometry: { + type: "Polygon", + coordinates: [[[39, 4], [41, 4], [41, 6], [39, 6], [39, 4]]] + } + } + } }, { - pre: 4, - loc: { - $geoWithin: { - $geometry: { - type: "Polygon", - coordinates: [[[-1, -1], [1, -1], [1, 1], [-1, 1], [-1, -1]]] - } - } - } + pre: 4, + loc: { + $geoWithin: { + $geometry: { + type: "Polygon", + coordinates: [[[-1, -1], [1, -1], [1, 1], [-1, 1], [-1, -1]]] + } + } + } } ] }); @@ -152,26 +152,26 @@ t.insert({_id: 1, pre: 4, loc: {type: "Point", coordinates: [0, 0]}}); cursor = t.find({ $or: [ { - pre: 3, - loc: { - $geoWithin: { - $geometry: { - type: "Polygon", - coordinates: [[[39, 4], [41, 4], [41, 6], [39, 6], [39, 4]]] - } - } - } + pre: 3, + loc: { + $geoWithin: { + $geometry: { + type: "Polygon", + coordinates: [[[39, 4], [41, 4], [41, 6], [39, 6], [39, 4]]] + } + } + } }, { - pre: 4, - loc: { - $geoWithin: { - $geometry: { - type: "Polygon", - coordinates: [[[-1, -1], [1, -1], [1, 1], [-1, 1], [-1, -1]]] - } - } - } + pre: 4, + loc: { + $geoWithin: { + $geometry: { + type: "Polygon", + coordinates: [[[-1, -1], [1, -1], [1, 1], [-1, 1], [-1, -1]]] + } + } + } } ] }); @@ -259,24 +259,24 @@ t.insert({_id: 1, loc: {type: "Point", coordinates: [0, 0]}}); cursor = t.find({ $or: [ { - loc: { - $geoWithin: { - $geometry: { - type: "Polygon", - coordinates: [[[39, 4], [41, 4], [41, 6], [39, 6], [39, 4]]] - } - } - } + loc: { + $geoWithin: { + $geometry: { + type: "Polygon", + coordinates: [[[39, 4], [41, 4], [41, 6], [39, 6], [39, 4]]] + } + } + } }, { - loc: { - $geoWithin: { - $geometry: { - type: "Polygon", - coordinates: [[[-1, -1], [1, -1], [1, 1], [-1, 1], [-1, -1]]] - } - } - } + loc: { + $geoWithin: { + $geometry: { + type: "Polygon", + coordinates: [[[-1, -1], [1, -1], [1, 1], [-1, 1], [-1, -1]]] + } + } + } } ] }); |