We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
select_all::smoke
1 parent f484fff commit 1a52ebaCopy full SHA for 1a52eba
futures/tests/select_all.rs
@@ -11,17 +11,20 @@ fn smoke() {
11
ok(3),
12
];
13
14
+ // This test depends on an implementation detail of `select_all` to match
15
+ // its behavior: it uses `swap_remove` under the hood.
16
+
17
let (i, idx, v) = block_on(select_all(v)).ok().unwrap();
18
assert_eq!(i, 1);
19
assert_eq!(idx, 0);
20
- let (i, idx, v) = block_on(select_all(v)).err().unwrap();
- assert_eq!(i, 2);
- assert_eq!(idx, 0);
21
-
22
23
assert_eq!(i, 3);
24
25
+ let (i, idx, v) = block_on(select_all(v)).err().unwrap();
26
+ assert_eq!(i, 2);
27
+ assert_eq!(idx, 0);
28
29
assert!(v.is_empty());
30
}
0 commit comments