[Groonga-commit] groonga/groonga [master] test: add longitude_position into file path

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 18日 (金) 18:36:30 JST


HAYASHI Kentaro	2012-05-18 18:36:30 +0900 (Fri, 18 May 2012)

  New Revision: 9848b40b55f28c74f39c8eaef40b6f8d39f89ff8

  Log:
    test: add longitude_position into file path

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

  Modified: test/function/tools/geo/generate-grntest-data.rb (+19 -2)
===================================================================
--- test/function/tools/geo/generate-grntest-data.rb    2012-05-18 18:35:39 +0900 (3aa888b)
+++ test/function/tools/geo/generate-grntest-data.rb    2012-05-18 18:36:30 +0900 (304dd7a)
@@ -524,6 +524,8 @@ if __FILE__ == $0
 
       direction = grndata.direction
 
+      longitude_position = grndata.longitude_position
+
       filename = grndata.generate_filename
 
       if OPTS.has_key?(:file_name)
@@ -532,9 +534,24 @@ if __FILE__ == $0
           puts(line)
         end
         if type == "line" then
-          puts("#{type_longitude}/#{quadrant}/#{type}/#{direction}/#{filename}")
+          path = [
+            type_longitude,
+            quadrant,
+            type,
+            direction,
+            longitude_position,
+            filename
+          ].join("/")
+          puts(path)
         else
-          puts("#{type_longitude}/#{quadrant}/#{type}/#{filename}")
+          path = [
+            type_longitude,
+            quadrant,
+            type,
+            longitude_position,
+            filename
+          ].join("/")
+          puts(path)
         end
       elsif OPTS.has_key?(:csv_data)
         puts(grndata.generate_new_data(line, type_longitude, quadrant, type, filename))




Groonga-commit メーリングリストの案内
Back to archive index