Commit 13ba99a
committed
ENH: Improve readability of output
For comparison, here is an excerpt of the before and after output
when running the tests with "python -m unittest discover -s tests"
Before
------
Checking tests/example.h
spell_check_file: tests/example.h, text/x-c++
Comment: Mary had a little lamb
<class 'comment_parser.parsers.common.Comment'>
Comment:
<class 'comment_parser.parsers.common.Comment'>
Comment: Prefix test words:
<class 'comment_parser.parsers.common.Comment'>
Comment: sitkBanana
<class 'comment_parser.parsers.common.Comment'>
Error: sitkBanana
Trying without 'sitk' prefix: sitkBanana -> Banana
Comment: vtkApple
<class 'comment_parser.parsers.common.Comment'>
After
-----
Checking tests/example.h
spell_check_file: tests/example.h, text/x-c++
Line 3: Mary had a little lamb
Line 4:
Line 5: Prefix test words:
Line 6: sitkBanana
Error: sitkBanana
Trying without 'sitk' prefix: sitkBanana -> Banana
Line 7: vtkApple
Error: vtkApple
Trying without 'vtk' prefix: vtkApple -> Apple1 parent f1184d7 commit 13ba99a
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
0 commit comments