MCPcopy Create free account
hub / github.com/douchuan/algorithm / quick_find_uf

Function quick_find_uf

tests/test_common.rs:159–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158#[test]
159fn 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]
176fn top_m() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected