null+****@clear*****
null+****@clear*****
2012年 6月 7日 (木) 17:17:24 JST
HAYASHI Kentaro 2012-06-07 17:17:24 +0900 (Thu, 07 Jun 2012)
New Revision: 07bd862609b59a418889d5ecb152d062667a9302
Log:
test: add a missing space
Modified files:
test/benchmark/geo-distance-summary.rb
Modified: test/benchmark/geo-distance-summary.rb (+4 -4)
===================================================================
--- test/benchmark/geo-distance-summary.rb 2012-06-07 16:38:27 +0900 (9995416)
+++ test/benchmark/geo-distance-summary.rb 2012-06-07 17:17:24 +0900 (87b6502)
@@ -30,19 +30,19 @@ class BenchmarkSummary
total = calc_total(data)
text = "|項目|"
@options[:count].times do |i|
- text << "#{i+1}|"
- text << "平均|\n" if i == @options[:count]-1
+ text << "#{i + 1}|"
+ text << "平均|\n" if i == @options[:count] - 1
end
total.each do |key, value|
line = [key]
@options[:count].times do |i|
- data[i+1].each do |data_key, data_value|
+ data[i + 1].each do |data_key, data_value|
if key == data_key
line << data_value
end
end
end
- line << [value/@options[:count].to_f]
+ line << [value / @options[:count].to_f]
text << sprintf("|%s|\n", line.join("|"))
end
puts text