Fix AppendGraph unit tests

This commit is contained in:
2026-04-23 18:13:10 +02:00
parent eabde7d635
commit 6180786e33
+3 -3
View File
@@ -214,7 +214,7 @@ mod tests {
assert!(
graph.are_adjacent(vertices[9], vertices[5]),
"expected {:?} and {:?} to be adjacent",
vertices[0],
vertices[9],
vertices[5]
);
assert!(
@@ -329,7 +329,7 @@ mod tests {
Some(v),
"vertex should be neighbor of itself twice"
);
assert_eq!(neighbors.next(), None, "two many neighbors from iterator");
assert_eq!(neighbors.next(), None, "too many neighbors from iterator");
}
#[test]
@@ -368,7 +368,7 @@ mod tests {
assert_eq!(
neighbors.next(),
None,
"two many neighbors of {:?} from iterator",
"too many neighbors of {:?} from iterator",
vertices[i]
);
}