HAYASHI Kentaro
null+****@clear*****
Mon Nov 5 10:17:31 JST 2012
HAYASHI Kentaro 2012-11-05 10:17:31 +0900 (Mon, 05 Nov 2012) New Revision: 171693fcaf855c416283422a9b991bb353a7886a https://github.com/groonga/groonga/commit/171693fcaf855c416283422a9b991bb353a7886a Log: test: use zero? to check whether the value is equal to 0 Modified files: test/command/tools/geo/generate-grntest-data.rb Modified: test/command/tools/geo/generate-grntest-data.rb (+1 -1) =================================================================== --- test/command/tools/geo/generate-grntest-data.rb 2012-11-04 21:41:35 +0900 (7cd65d6) +++ test/command/tools/geo/generate-grntest-data.rb 2012-11-05 10:17:31 +0900 (724dc7b) @@ -574,7 +574,7 @@ class GrnTestData when "1st_to_4th", "4th_to_1st", "2nd_to_3rd", "3rd_to_2nd" longitude_delta = @longitude_end_degree - @longitude_start_degree latitude_delta = @latitude_end_degree - @latitude_start_degree - if longitude_delta.to_f == 0 + if longitude_delta.zero? north_distance = calculate_distance(@longitude_start.to_i, @latitude_start.to_i, @longitude_start.to_i, -------------- next part -------------- HTML����������������������������...Descargar