Skip to content

Commit afdf052

Browse files
author
Ulrik Sverdrup
committed
collections: Fix drain test names
1 parent bb12d20 commit afdf052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcollectionstest/vec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,13 +491,13 @@ fn test_drain_items_zero_sized() {
491491

492492
#[test]
493493
#[should_panic]
494-
fn drain_out_of_bounds_1() {
494+
fn test_drain_out_of_bounds() {
495495
let mut v = vec![1, 2, 3, 4, 5];
496496
v.drain(5..6);
497497
}
498498

499499
#[test]
500-
fn drain_range() {
500+
fn test_drain_range() {
501501
let mut v = vec![1, 2, 3, 4, 5];
502502
for _ in v.drain(4..) {
503503
}

0 commit comments

Comments
 (0)