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.
1 parent 947ddb3 commit 1caa43eCopy full SHA for 1caa43e
src/web/releases.rs
@@ -1095,12 +1095,12 @@ mod tests {
1095
("foo", "1.0.0", None),
1096
("baz", "0.0.1", Some(-10)),
1097
];
1098
- for (i, li) in items.iter().enumerate() {
+ for (li, expected) in items.iter().zip(&expected) {
1099
let a = li.as_node().select_first("a").expect("missing link");
1100
- assert!(a.text_contents().contains(expected[i].0));
1101
- assert!(a.text_contents().contains(expected[i].1));
+ assert!(a.text_contents().contains(expected.0));
+ assert!(a.text_contents().contains(expected.1));
1102
1103
- if let Some(priority) = expected[i].2 {
+ if let Some(priority) = expected.2 {
1104
assert!(li
1105
.text_contents()
1106
.contains(&format!("priority: {}", priority)));
0 commit comments