From 4ae691e8edc87d0e3cfb633bb91c328426be007b Mon Sep 17 00:00:00 2001 From: Jonathan Abrahams Date: Wed, 9 Mar 2016 12:17:50 -0500 Subject: SERVER-22468 Format JS code with approved style in jstests/ --- jstests/core/geo_circle1.js | 63 ++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 30 deletions(-) (limited to 'jstests/core/geo_circle1.js') diff --git a/jstests/core/geo_circle1.js b/jstests/core/geo_circle1.js index c4b79e645ab..a679a408b32 100644 --- a/jstests/core/geo_circle1.js +++ b/jstests/core/geo_circle1.js @@ -2,45 +2,48 @@ t = db.geo_circle1; t.drop(); -searches = [ - [ [ 5 , 5 ] , 3 ] , - [ [ 5 , 5 ] , 1 ] , - [ [ 5 , 5 ] , 5 ] , - [ [ 0 , 5 ] , 5 ] , -]; -correct = searches.map( function(z){ return []; } ); +searches = [[[5, 5], 3], [[5, 5], 1], [[5, 5], 5], [[0, 5], 5], ]; +correct = searches.map(function(z) { + return []; +}); num = 0; -for ( x=0; x<=20; x++ ){ - for ( y=0; y<=20; y++ ){ - o = { _id : num++ , loc : [ x , y ] }; - t.save( o ); - for ( i=0; i