Skip to content

Commit 188a704

Browse files
committed
Nicer output for spec matcher
1 parent e7757ec commit 188a704

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec_finder.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@ def main(refresh_spec=False, diff_output=False, limit_numbers=None):
8686
print(number + '\n' + '\n'.join([li for li in difflib.ndiff([txt], [spec_map[number]]) if not li.startswith(' ')]))
8787
continue
8888

89-
print(f"Couldn't find the number {number}")
90-
print("\n\n")
89+
print(f"{number} is defined in our tests, but couldn't find it in the spec")
90+
print("")
9191

9292
if len(missing) > 0:
93-
print('Missing: ', missing)
93+
print('In the spec, but not in our tests: ')
94+
for m in missing:
95+
print(f" {m}: {spec_map[m]}")
9496

9597
sys.exit(bad_num)
9698

0 commit comments

Comments
 (0)