test(cli): update strict error-escaping test for XML 1.0 character filtering

This commit is contained in:
Dylan M. Taylor committed 2026-11-14 05:37:27 +00:00
1 parent beae4b82fa
commit d1a36fd0c6
1 file changed
+1 -1
+1 -1
View File
@@ -372,7 +372,7 @@ fn run_with_strict_cannot_forge_an_error_line_either() {
assert_eq!(r.status.code(), Some(1));
let text = stderr(&r);
assert_eq!(text.lines().count(), 1, "{text}");
assert!(text.contains("\\u{1b}") || text.contains("\\u{1b}[2J"), "{text}");
assert!(text.contains("\\nwordcraft-cli: strict: forged") && text.contains("\\u{202e}"), "{text}");
assert!(!text.contains('\u{1b}') && !text.contains('\u{202e}'), "{text:?}");
assert!(!out.exists());
std::fs::remove_dir_all(d).unwrap();