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

Function TestMoserDeBruijnSequence

math/moserdebruijnsequence/sequence_test.go:16–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

14}
15
16func 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}

Callers

nothing calls this directly

Calls 1

MoserDeBruijnSequenceFunction · 0.85

Tested by

no test coverage detected