MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / TestBipartite

Function TestBipartite

graph/coloring/bipartite_test.go:23–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestBipartite(t *testing.T) {
24 for _, tc := range testCases {
25 t.Run(tc.name, func(t *testing.T) {
26 actual := BipartiteCheck(tc.N, tc.edges)
27 if tc.isBipartite != actual {
28 t.Errorf("failed %s: %v", tc.name, tc.edges)
29 }
30 })
31 }
32}

Callers

nothing calls this directly

Calls 1

BipartiteCheckFunction · 0.85

Tested by

no test coverage detected