fix: retain header and divider delimiter lengths when updating tests

This helps to prevent visual bloat in diffs when updating tests where the delimiter is not 80 chars long
This commit is contained in:
Amaan Qureshi 2023-07-27 03:31:46 -04:00
parent 7d4b0110a9
commit ee399e67d4
No known key found for this signature in database
GPG key ID: E67890ADC4227273
2 changed files with 89 additions and 23 deletions

View file

@ -502,6 +502,7 @@ fn flatten_tests(test: TestEntry) -> Vec<FlattenedTest> {
input,
output,
has_fields,
..
} => {
if !prefix.is_empty() {
name.insert_str(0, " - ");