test(providers): keep unicode boundary test in English text
This commit is contained in:
parent
3c62b59a72
commit
01c419bb57
1 changed files with 1 additions and 1 deletions
|
|
@ -965,7 +965,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn sanitize_preserves_unicode_boundaries() {
|
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);
|
let result = sanitize_api_error(&input);
|
||||||
assert!(std::str::from_utf8(result.as_bytes()).is_ok());
|
assert!(std::str::from_utf8(result.as_bytes()).is_ok());
|
||||||
assert!(!result.contains("sk-abcdef123"));
|
assert!(!result.contains("sk-abcdef123"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue