Fix test
This commit is contained in:
parent
43453a8ebf
commit
d47371de69
@ -2416,10 +2416,7 @@ fn check_many(s: &str, arg: impl IntoIterator<Item = usize>, ret: usize) {
|
|||||||
check_many("🇯🇵", 0..=0, 0);
|
check_many("🇯🇵", 0..=0, 0);
|
||||||
check_many("🇯🇵", 1..=4, 4);
|
check_many("🇯🇵", 1..=4, 4);
|
||||||
check_many("🇯🇵", 5..=8, 8);
|
check_many("🇯🇵", 5..=8, 8);
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
// above len
|
||||||
#[should_panic]
|
check_many("hello", 5..=10, 5);
|
||||||
fn ceil_char_boundary_above_len_panic() {
|
|
||||||
let _ = "x".ceil_char_boundary(2);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user