mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-14 14:32:31 +00:00
test(cli): update strict error-escaping test for XML 1.0 character filtering
This commit is contained in:
1 parent
beae4b82fa
commit
d1a36fd0c6
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user