Tests
(t *testing.T)
| 4 | |
| 5 | // Tests |
| 6 | func TestProblem11_Func(t *testing.T) { |
| 7 | testCases := []struct { |
| 8 | name string |
| 9 | expected uint |
| 10 | }{ |
| 11 | {"Test Case 1", 70600674}, |
| 12 | } |
| 13 | |
| 14 | for _, tc := range testCases { |
| 15 | t.Run(tc.name, func(t *testing.T) { |
| 16 | actual := Problem11() |
| 17 | if actual != tc.expected { |
| 18 | t.Errorf("Expected: %v, but got %v", tc.expected, actual) |
| 19 | } |
| 20 | }) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // Benchmark |
| 25 | func BenchmarkProblem11_Func(b *testing.B) { |
nothing calls this directly
no test coverage detected