()
| 157 | |
| 158 | #[test] |
| 159 | fn quick_find_uf() { |
| 160 | let i = TINY_UF; |
| 161 | |
| 162 | let uf = QuickFindUF::from_str(i).unwrap(); |
| 163 | assert_eq!(2, uf.count()); |
| 164 | |
| 165 | let uf = QuickUnionUF::from_str(i).unwrap(); |
| 166 | assert_eq!(2, uf.count()); |
| 167 | |
| 168 | let uf = WeightedQuickUnionUF::from_str(i).unwrap(); |
| 169 | assert_eq!(2, uf.count()); |
| 170 | |
| 171 | let uf = UF::from_str(i).unwrap(); |
| 172 | assert_eq!(2, uf.count()); |
| 173 | } |
| 174 | |
| 175 | #[test] |
| 176 | fn top_m() { |
nothing calls this directly
no outgoing calls
no test coverage detected