null+****@clear*****
null+****@clear*****
2012年 6月 4日 (月) 12:07:23 JST
HAYASHI Kentaro 2012-06-04 12:07:23 +0900 (Mon, 04 Jun 2012) New Revision: 22272727d71667cb210a92c1c27d5c80e7185551 Log: test: change method name parse_distance_value-> parse_distance Modified files: test/function/tools/geo/generate-grntest-data.rb Modified: test/function/tools/geo/generate-grntest-data.rb (+3 -3) =================================================================== --- test/function/tools/geo/generate-grntest-data.rb 2012-06-04 12:01:56 +0900 (1925b97) +++ test/function/tools/geo/generate-grntest-data.rb 2012-06-04 12:07:23 +0900 (6fa2f32) @@ -642,7 +642,7 @@ class GrnTestData end end - def parse_distance_value(file_name) + def parse_distance(file_name) if File.exists?(file_name) File.open(file_name, "r") do |file| data = file.read @@ -692,8 +692,8 @@ class GrnTestData basename = File.basename(reject_file, ".reject") expected_file = File.join(directory, "#{basename}.expected") test_file = File.join(directory, "#{basename}.test") - actual_distance = parse_distance_value(reject_file) - expected_distance = parse_distance_value(expected_file) + actual_distance = parse_distance(reject_file) + expected_distance = parse_distance(expected_file) parse_distance_test_data(test_file) distance_diff = actual_distance - expected_distance