Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
clarfonthey committed Jun 8, 2023
1 parent 43453a8 commit d47371d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions library/alloc/tests/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2416,10 +2416,7 @@ fn ceil_char_boundary() {
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);
}

0 comments on commit d47371d

Please sign in to comment.