(t *testing.T)
| 27 | } |
| 28 | |
| 29 | func TestRecursivePower(t *testing.T) { |
| 30 | for _, tc := range testCases { |
| 31 | t.Run(tc.name, func(t *testing.T) { |
| 32 | actual := RecursivePower(tc.base, tc.power) |
| 33 | if actual != tc.expected { |
| 34 | t.Errorf("Expected %d to the power of %d to be: %d, but got: %d", tc.base, tc.power, tc.expected, actual) |
| 35 | } |
| 36 | }) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func TestRecursivePower1(t *testing.T) { |
| 41 | for _, tc := range testCases { |
nothing calls this directly
no test coverage detected