improve readability of error reporting output

Change-Id: I84cf8c6e6683c81d33596d79214d69f3f0199aa8
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-09-20 12:03:44 -04:00
parent eee0d41635
commit e942ec95b4

View File

@ -146,13 +146,13 @@ def report(msg):
def show_test_and_matches(msg, test, matches): def show_test_and_matches(msg, test, matches):
report( report(
'{} on line {}: {}'.format( '{} on line {}: {} should produce {} {}'.format(
msg, test[0], ' '.join(test[1:])) msg, test[0], test[1], test[2], test[3])
) )
path = test[1] path = test[1]
for linenum, code, new_path in matches: for linenum, code, new_path in matches:
print('whereto: {} -> {} ({})'.format( print('whereto: {} -> {} {} [line {}]'.format(
path, new_path, code)) path, code, new_path, linenum))
def main(): def main():