algorithms/fundamentals/exrecises/union_find/test_count.go

12 lines
218 B
Go
Raw Normal View History

2021-11-22 23:39:33 +02:00
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)
}
}