From d1a36fd0c6676b96d50e85ad5bacfe605d63f97e Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 14 Nov 2026 05:37:27 +0000 Subject: [PATCH] test(cli): update strict error-escaping test for XML 1.0 character filtering --- apps/wordcraft-cli/tests/it/strict.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wordcraft-cli/tests/it/strict.rs b/apps/wordcraft-cli/tests/it/strict.rs index 399fc09927..1fa89d9880 100644 --- a/apps/wordcraft-cli/tests/it/strict.rs +++ b/apps/wordcraft-cli/tests/it/strict.rs @@ -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();