4
Encoding.default_external = Encoding::UTF_8
5
Encoding.default_internal = Encoding::UTF_8
10
# hash.each {|key, val|
11
# puts "#{val} ==> #{key}"
16
open_file=File.open(file)
21
open_file.each_line do |line|
22
match = line.match(/^(\+|-)(Error|Passed|FAILED):\s*(\w*)(\/(\w*))*(\/(\w*\.(java|sh)))/)
25
# puts match[1], match[2], match[5], match[7]
26
key = match[5] + "--" + match[7]
27
val = match[1] + match[2]
30
if (hash[key] && hash[key] != val)
31
puts "Was #{hash[key]}, #{val} ==> #{key}"