Skip to content

Commit 0000009

Browse files
committed
fix: align qformat and harden utf8 regression test
qformat now trims the shared prefix against both tag lines instead of checking first_tags twice, which keeps the generated ? lines aligned when the second tag line has different leading spaces. The UTF-8 regression test now asserts ? lines and ^ markers so it exercises the intraline diff path instead of passing on a plain replace. Rename the UTF-8 regression test to match the PR description. This release stays on 0.5.1 because the UTF-8 intraline diff fix changes generated diff output for some inputs. The public API is unchanged, but diff formatting behavior differs, so we treat this as a release-line bump. 00-007b6df9
1 parent 0000007 commit 0000009

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ fn test_differ_compare_utf8() {
141141
let result = differ.compare(&first_text, &second_text).join("");
142142
assert!(result.contains("🦀"));
143143
assert!(result.contains("🦞"));
144+
assert!(result.contains("? "));
145+
assert!(result.contains("^"));
144146
}
145147

146148
#[test]

0 commit comments

Comments
 (0)