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

Function TestProblem11_Func

project_euler/problem_11/problem11_test.go:6–22  ·  view source on GitHub ↗

Tests

(t *testing.T)

Source from the content-addressed store, hash-verified

4
5// Tests
6func 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
25func BenchmarkProblem11_Func(b *testing.B) {

Callers

nothing calls this directly

Calls 1

Problem11Function · 0.85

Tested by

no test coverage detected