# File test/src/parser_test.rb, line 48 def add_encountered(msg, encountered) result = msg.dup result << ', ' unless msg.strip.length == 0 || msg =~ /.*(\.|,)\s*$/ "#{result}#{encountered}" end