We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0a105b commit 30a029eCopy full SHA for 30a029e
library/alloc/src/collections/vec_deque/tests.rs
@@ -351,14 +351,14 @@ fn test_rotate_left_right() {
351
}
352
353
#[test]
354
-#[should_panic = "assertion failed: mid <= self.len()"]
+#[should_panic = "assertion failed: n <= self.len()"]
355
fn test_rotate_left_panic() {
356
let mut tester: VecDeque<_> = (1..=10).collect();
357
tester.rotate_left(tester.len() + 1);
358
359
360
361
-#[should_panic = "assertion failed: k <= self.len()"]
362
fn test_rotate_right_panic() {
363
364
tester.rotate_right(tester.len() + 1);
0 commit comments