test(providers): keep unicode boundary test in English text

This commit is contained in:
Chummy 2026-02-17 21:50:08 +08:00
parent 3c62b59a72
commit 01c419bb57

View file

@ -965,7 +965,7 @@ mod tests {
#[test]
fn sanitize_preserves_unicode_boundaries() {
let input = format!("{} sk-abcdef123", "こんにちは".repeat(80));
let input = format!("{} sk-abcdef123", "hello🙂".repeat(80));
let result = sanitize_api_error(&input);
assert!(std::str::from_utf8(result.as_bytes()).is_ok());
assert!(!result.contains("sk-abcdef123"));