We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43453a8 commit d47371dCopy full SHA for d47371d
1 file changed
library/alloc/tests/str.rs
@@ -2416,10 +2416,7 @@ fn ceil_char_boundary() {
2416
check_many("🇯🇵", 0..=0, 0);
2417
check_many("🇯🇵", 1..=4, 4);
2418
check_many("🇯🇵", 5..=8, 8);
2419
-}
2420
2421
-#[test]
2422
-#[should_panic]
2423
-fn ceil_char_boundary_above_len_panic() {
2424
- let _ = "x".ceil_char_boundary(2);
+ // above len
+ check_many("hello", 5..=10, 5);
2425
}
0 commit comments