HAYASHI Kentaro
null+****@clear*****
Wed Nov 14 15:52:29 JST 2012
HAYASHI Kentaro 2012-11-14 15:52:29 +0900 (Wed, 14 Nov 2012) New Revision: afb0fcbdf368a360d575c780c84fadbf4183019c https://github.com/groonga/groonga/commit/afb0fcbdf368a360d575c780c84fadbf4183019c Log: test: set the value of calculated distance to instance variable Modified files: test/command/tools/geo/generate-grntest-data.rb Modified: test/command/tools/geo/generate-grntest-data.rb (+4 -6) =================================================================== --- test/command/tools/geo/generate-grntest-data.rb 2012-11-14 15:50:18 +0900 (5ff014d) +++ test/command/tools/geo/generate-grntest-data.rb 2012-11-14 15:52:29 +0900 (a15e09c) @@ -766,14 +766,12 @@ class GrnTestData else select_postfix = ", \"#{app_type}\")'\n" end - if @distance != "" - distance = @distance - else - distance = geo_distance(app_type) + if @distance == "" + @distance = geo_distance(app_type) end if type_of_diff_in_longitude == "short" - check_distance_by_geokit(distance) + check_distance_by_geokit(@distance) end [ @@ -787,7 +785,7 @@ class GrnTestData scorer, select_postfix, SELECT_PRE, - distance, + @distance, SELECT_POST ].join end -------------- next part -------------- HTML����������������������������...Download