From d47371de6975524e2dd3848d48c43b724f7aa8f3 Mon Sep 17 00:00:00 2001 From: ltdk Date: Thu, 8 Jun 2023 09:21:05 -0400 Subject: [PATCH] Fix test --- library/alloc/tests/str.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/library/alloc/tests/str.rs b/library/alloc/tests/str.rs index 0ba5d088f61..e1f3692f501 100644 --- a/library/alloc/tests/str.rs +++ b/library/alloc/tests/str.rs @@ -2416,10 +2416,7 @@ fn check_many(s: &str, arg: impl IntoIterator, ret: usize) { check_many("🇯🇵", 0..=0, 0); check_many("🇯🇵", 1..=4, 4); check_many("🇯🇵", 5..=8, 8); -} -#[test] -#[should_panic] -fn ceil_char_boundary_above_len_panic() { - let _ = "x".ceil_char_boundary(2); + // above len + check_many("hello", 5..=10, 5); }