(t *testing.T)
| 14 | } |
| 15 | |
| 16 | func TestMoserDeBruijnSequence(t *testing.T) { |
| 17 | |
| 18 | for _, test := range testCases { |
| 19 | t.Run(test.name, func(t *testing.T) { |
| 20 | if output := MoserDeBruijnSequence(test.inputNum); !reflect.DeepEqual(output, test.expected) { |
| 21 | t.Errorf("For input: %d, expected: %v, but got: %v", test.inputNum, test.expected, output) |
| 22 | } |
| 23 | }) |
| 24 | } |
| 25 | } |
nothing calls this directly
no test coverage detected