algorithms/fundamentals/exrecises/union_find/test_count.go
2021-11-22 23:39:33 +02:00

11 lines
218 B
Go

package unionfind
import "log"
func testCount(i implementation) {
qf := i.create(10)
if qf.Count() != 10 {
log.Fatalf("%v: Before any union number of components should be equal to number of sites", i.name)
}
}