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
1 changed files with 4 additions and 4 deletions

View File

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