[Groonga-commit] groonga/groonga [master] test: fix indent

アーカイブの一覧に戻る

HAYASHI Kentaro null+****@clear*****
Mon Nov 12 13:34:07 JST 2012


HAYASHI Kentaro	2012-11-12 13:34:07 +0900 (Mon, 12 Nov 2012)

  New Revision: e2cb7ac4b101b4b9908359089f0dd2feec679179
  https://github.com/groonga/groonga/commit/e2cb7ac4b101b4b9908359089f0dd2feec679179

  Log:
    test: fix indent

  Modified files:
    test/command/tools/geo/generate-grntest-data.rb

  Modified: test/command/tools/geo/generate-grntest-data.rb (+30 -30)
===================================================================
--- test/command/tools/geo/generate-grntest-data.rb    2012-11-12 13:28:00 +0900 (a600c33)
+++ test/command/tools/geo/generate-grntest-data.rb    2012-11-12 13:34:07 +0900 (5fb7eb3)
@@ -560,37 +560,37 @@ class GrnTestData
       slope = latitude_delta / longitude_delta.to_f
       intercept = @latitude_start_degree - slope * @longitude_start_degree
       east_distance = calculate_distance(@longitude_start.to_i,
-                                @latitude_start.to_i,
-                                0,
-                                intercept * GRN_GEO_RESOLUTION)
+                                         @latitude_start.to_i,
+                                         0,
+                                         intercept * GRN_GEO_RESOLUTION)
       west_distance = calculate_distance(0,
-                                intercept * GRN_GEO_RESOLUTION,
-                                @longitude_end.to_i,
-                                @latitude_end.to_i)
+                                         intercept * GRN_GEO_RESOLUTION,
+                                         @longitude_end.to_i,
+                                         @latitude_end.to_i)
       (east_distance + west_distance).floor
     when "1st_to_4th", "4th_to_1st", "2nd_to_3rd", "3rd_to_2nd"
       if @latitude_end_degree > @latitude_start_degree
         calculate_distance(@longitude_start.to_i,
-                  @latitude_start.to_i,
-                  @longitude_end.to_i,
-                  @latitude_end.to_i).floor
+                           @latitude_start.to_i,
+                           @longitude_end.to_i,
+                           @latitude_end.to_i).floor
       else
         calculate_distance(@longitude_end.to_i,
-                  @latitude_end.to_i,
-                  @longitude_start.to_i,
-                  @latitude_start.to_i).floor
+                           @latitude_end.to_i,
+                           @longitude_start.to_i,
+                           @latitude_start.to_i).floor
       end
     when "1st_to_3rd", "3rd_to_1st", "2nd_to_4th", "4th_to_2nd"
       if @latitude_start_degree > @latitude_end_degree
         calculate_distance(@longitude_start.to_i,
-                  @latitude_start.to_i,
-                  @longitude_end.to_i,
-                  @latitude_end.to_i).floor
+                           @latitude_start.to_i,
+                           @longitude_end.to_i,
+                           @latitude_end.to_i).floor
       else
         calculate_distance(@longitude_end.to_i,
-                  @latitude_end.to_i,
-                  @longitude_start.to_i,
-                  @latitude_start.to_i).floor
+                           @latitude_end.to_i,
+                           @longitude_start.to_i,
+                           @latitude_start.to_i).floor
       end
     when "equator"
       if point_or_line == "point"
@@ -598,26 +598,26 @@ class GrnTestData
       else
         if east_axis_to_west_axis? or west_axis_to_east_axis?
           east_distance = calculate_distance(@longitude_start.to_i,
-                                    @latitude_start.to_i,
-                                    0,
-                                    @latitude_start.to_i)
+                                             @latitude_start.to_i,
+                                             0,
+                                             @latitude_start.to_i)
           west_distance = calculate_distance(0,
-                                    @latitude_end.to_i,
-                                    @longitude_end.to_i,
-                                    @latitude_end.to_i)
+                                             @latitude_end.to_i,
+                                             @longitude_end.to_i,
+                                             @latitude_end.to_i)
           (east_distance + west_distance).floor
         else
           calculate_distance(@longitude_start.to_i,
-                    @latitude_start.to_i,
-                    @longitude_end.to_i,
-                    @latitude_end.to_i).floor
+                             @latitude_start.to_i,
+                             @longitude_end.to_i,
+                             @latitude_end.to_i).floor
         end
       end
     else
       calculate_distance(@longitude_start.to_i,
-                @latitude_start.to_i,
-                @longitude_end.to_i,
-                @latitude_end.to_i).floor
+                         @latitude_start.to_i,
+                         @longitude_end.to_i,
+                         @latitude_end.to_i).floor
     end
   end
 
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る