Merge pull request #9 from postmodern/print_killer_fix

Use %s to avoid embedding Strings which may contain '%' characters.
This commit is contained in:
Markus Schirp 2013-01-20 23:33:59 -08:00
commit 1ab050a19c

View file

@ -270,7 +270,7 @@ module Mutant
# @api private
#
def print_killer(color, word, killer)
puts(colorize(color, "#{word}: #{killer.identification} (%02.2fs)" % killer.runtime))
puts(colorize(color, "%s: %s (%02.2fs)" % [word, killer.identification, killer.runtime]))
end
# Test for output to tty