null+****@clear*****
null+****@clear*****
2012年 5月 21日 (月) 13:02:54 JST
HAYASHI Kentaro 2012-05-21 13:02:54 +0900 (Mon, 21 May 2012)
New Revision: 188c184314453f5ce0906f17fa1a08373ee480a0
Log:
test: use File#join instead of Array#join
Modified files:
test/function/tools/geo/generate-grntest-data.rb
Modified: test/function/tools/geo/generate-grntest-data.rb (+11 -15)
===================================================================
--- test/function/tools/geo/generate-grntest-data.rb 2012-05-21 12:06:41 +0900 (010e935)
+++ test/function/tools/geo/generate-grntest-data.rb 2012-05-21 13:02:54 +0900 (6e301a3)
@@ -546,23 +546,19 @@ if __FILE__ == $0
puts(line)
end
if type == "line"
- path = [
- type_longitude,
- quadrant,
- type,
- direction,
- longitude_position,
- filename
- ].join(File::SEPARATOR)
+ path = File.join(type_longitude,
+ quadrant,
+ type,
+ direction,
+ longitude_position,
+ filename)
puts(path)
else
- path = [
- type_longitude,
- quadrant,
- type,
- longitude_position,
- filename
- ].join(File::SEPARATOR)
+ path = File.join(type_longitude,
+ quadrant,
+ type,
+ longitude_position,
+ filename)
puts(path)
end
elsif OPTS.has_key?(:csv_data)