Whole file
r1chardj0n3s/parse
The author described this change as “Fix handling of unused alignment (#132)”. It counts as a record because the checks below fail on the code as it stood at 9a4a5558f and pass on 421c19919, with nothing else changed between the two runs.
Projectr1chardj0n3s/parse
Fix saved2021-06-04
Sharing licenceMIT · LICENSE
Change size+2 −2
What the code was meant to do, written into the code itself as a save note
Fix handling of unused alignment (#132)
The change
| 1264 | 1264 | ||
| 1265 | 1265 | # align "=" has been handled | |
| 1266 | 1266 | if align == '<': | |
| 1267 | - | s = '%s%s+' % (s, fill) | |
| 1267 | + | s = '%s%s*' % (s, fill) | |
| 1268 | 1268 | elif align == '>': | |
| 1269 | 1269 | s = '%s*%s' % (fill, s) | |
| 1270 | 1270 | elif align == '^': | |
| 1271 | - | s = '%s*%s%s+' % (fill, s, fill) | |
| 1271 | + | s = '%s*%s%s*' % (fill, s, fill) | |
| 1272 | 1272 | ||
| 1273 | 1273 | return s | |
| 1274 | 1274 |
The check that tells the two apart
fail→pass·test_parse.py::TestBugs::test_unused_centered_alignment_bug
fail→pass·test_parse.py::TestBugs::test_unused_left_alignment_bug
Check file test_parse.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it9a4a5558fe314effb47d17bc64ada56221ec9a66
Broken version dated2021-06-04
Moduleparse
Units changedParser
Fingerprintd9db63b1830dd380
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.
Other bugs found in r1chardj0n3s/parse
- 2020-07-30findall
- 2019-12-23Handle fortran formatted float number, Bug fix & test case.
- 2013-10-15date_convert
- 2012-09-29fix type conversion error with dotted names