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

Function TestTilingProblem

dynamic/tilingproblem_test.go:29–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func TestTilingProblem(t *testing.T) {
30 t.Run("Tiling Problem test cases", func(t *testing.T) {
31 for _, tc := range getTilingProblemTestCases() {
32 actual := dynamic.TilingProblem(tc.n)
33 if actual != tc.expected {
34 t.Errorf("TilingProblem(%d) = %d; expected %d", tc.n, actual, tc.expected)
35 }
36 }
37 })
38}

Callers

nothing calls this directly

Calls 2

TilingProblemFunction · 0.92

Tested by

no test coverage detected