Skip to content

Commit d47371d

Browse files
committed
Fix test
1 parent 43453a8 commit d47371d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

library/alloc/tests/str.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -2416,10 +2416,7 @@ fn ceil_char_boundary() {
24162416
check_many("🇯🇵", 0..=0, 0);
24172417
check_many("🇯🇵", 1..=4, 4);
24182418
check_many("🇯🇵", 5..=8, 8);
2419-
}
24202419

2421-
#[test]
2422-
#[should_panic]
2423-
fn ceil_char_boundary_above_len_panic() {
2424-
let _ = "x".ceil_char_boundary(2);
2420+
// above len
2421+
check_many("hello", 5..=10, 5);
24252422
}

0 commit comments

Comments
 (0)