MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / TestMaxCoins

Function TestMaxCoins

dynamic/burstballoons_test.go:24–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

22}
23
24func TestMaxCoins(t *testing.T) {
25 t.Run("Burst Balloons test cases", func(t *testing.T) {
26 for _, tc := range getBurstBalloonsTestCases() {
27 actual := dynamic.MaxCoins(tc.nums)
28 if actual != tc.expected {
29 t.Errorf("MaxCoins(%v) = %d; expected %d", tc.nums, actual, tc.expected)
30 }
31 }
32 })
33}

Callers

nothing calls this directly

Calls 2

MaxCoinsFunction · 0.92

Tested by

no test coverage detected