[Groonga-commit] groonga/groonga [master] test: fix to multiply GRN_GEO_RESOLUTION

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Nov 2 11:37:11 JST 2012


HAYASHI Kentaro	2012-11-02 11:37:11 +0900 (Fri, 02 Nov 2012)

  New Revision: 29366806ecdcc521c2b09eab8da324a4305a7aab
  https://github.com/groonga/groonga/commit/29366806ecdcc521c2b09eab8da324a4305a7aab

  Log:
    test: fix to multiply GRN_GEO_RESOLUTION
    
    refs #1534

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

  Modified: test/command/tools/geo/generate-grntest-data.rb (+4 -4)
===================================================================
--- test/command/tools/geo/generate-grntest-data.rb    2012-11-02 10:23:03 +0900 (780f580)
+++ test/command/tools/geo/generate-grntest-data.rb    2012-11-02 11:37:11 +0900 (c9b43e0)
@@ -609,9 +609,9 @@ class GrnTestData
             intermediate_distance = calculate_distance(longitude_on_equator,
                                                        0,
                                                        0,
-                                                       intercept)
+                                                       intercept * GRN_GEO_RESOLUTION)
             third_distance = calculate_distance(0,
-                                                intercept,
+                                                intercept * GRN_GEO_RESOLUTION,
                                                 @longitude_end.to_i,
                                                 @latitude_end.to_i)
             (first_distance + intermediate_distance + third_distance).floor
@@ -619,9 +619,9 @@ class GrnTestData
             first_distance = calculate_distance(@longitude_start.to_i,
                                                 @latitude_start.to_i,
                                                 0,
-                                                intercept)
+                                                intercept * GRN_GEO_RESOLUTION)
             intermediate_distance = calculate_distance(0,
-                                                       intercept,
+                                                       intercept * GRN_GEO_RESOLUTION,
                                                        longitude_on_equator,
                                                        0)
             third_distance = calculate_distance(longitude_on_equator,
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index