()
| 786 | |
| 787 | #[test] |
| 788 | fn test_conflict_path_iter() { |
| 789 | let mut path = ConflictPath::new(); |
| 790 | path.push(PathElement::scc(SccId::new(0))); |
| 791 | path.push(PathElement::scc(SccId::new(1))); |
| 792 | |
| 793 | let elements: Vec<_> = path.iter().collect(); |
| 794 | assert_eq!(elements.len(), 2); |
| 795 | } |
| 796 | |
| 797 | // ------------------------------------------------------------------------- |
| 798 | // ConflictTree Tests |