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!( assert!(
graph.are_adjacent(vertices[9], vertices[5]), graph.are_adjacent(vertices[9], vertices[5]),
"expected {:?} and {:?} to be adjacent", "expected {:?} and {:?} to be adjacent",
vertices[0], vertices[9],
vertices[5] vertices[5]
); );
assert!( assert!(
@@ -329,7 +329,7 @@ mod tests {
Some(v), Some(v),
"vertex should be neighbor of itself twice" "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] #[test]
@@ -368,7 +368,7 @@ mod tests {
assert_eq!( assert_eq!(
neighbors.next(), neighbors.next(),
None, None,
"two many neighbors of {:?} from iterator", "too many neighbors of {:?} from iterator",
vertices[i] vertices[i]
); );
} }