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

Function TestProblem19_Func

project_euler/problem_19/problem19_test.go:6–22  ·  view source on GitHub ↗

Tests

(t *testing.T)

Source from the content-addressed store, hash-verified

4
5// Tests
6func TestProblem19_Func(t *testing.T) {
7 tests := []struct {
8 name string
9 expected int
10 }{
11 {"Problem 19 - Counting Sundays", 171},
12 }
13
14 for _, test := range tests {
15 t.Run(test.name, func(t *testing.T) {
16 got := Problem19()
17 if got != test.expected {
18 t.Errorf("Problem19() = got %v, want %v", got, test.expected)
19 }
20 })
21 }
22}
23
24// Benchmarks
25func BenchmarkProblem19_Func(b *testing.B) {

Callers

nothing calls this directly

Calls 1

Problem19Function · 0.85

Tested by

no test coverage detected