summaryrefslogtreecommitdiff
path: root/jstests/core/geo_s2exact.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/geo_s2exact.js')
-rw-r--r--jstests/core/geo_s2exact.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/jstests/core/geo_s2exact.js b/jstests/core/geo_s2exact.js
index 29150d63376..3acd5b68969 100644
--- a/jstests/core/geo_s2exact.js
+++ b/jstests/core/geo_s2exact.js
@@ -10,12 +10,20 @@ function test(geometry) {
t.dropIndex({geo: "2dsphere"});
}
-pointA = { "type" : "Point", "coordinates": [ 40, 5 ] };
+pointA = {
+ "type": "Point",
+ "coordinates": [40, 5]
+};
test(pointA);
-someline = { "type" : "LineString", "coordinates": [ [ 40, 5], [41, 6]]};
+someline = {
+ "type": "LineString",
+ "coordinates": [[40, 5], [41, 6]]
+};
test(someline);
-somepoly = { "type" : "Polygon",
- "coordinates" : [ [ [40,5], [40,6], [41,6], [41,5], [40,5]]]};
+somepoly = {
+ "type": "Polygon",
+ "coordinates": [[[40, 5], [40, 6], [41, 6], [41, 5], [40, 5]]]
+};
test(somepoly);