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

Function TestIsAutomorphic

math/isautomorphic_test.go:49–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

47}
48
49func TestIsAutomorphic(t *testing.T) {
50 for _, test := range testCases {
51 t.Run(test.name, func(t *testing.T) {
52 funcResult := IsAutomorphic(test.input)
53 if test.expected != funcResult {
54 t.Errorf("Expected answer '%t' for the number '%d' but answer given was %t", test.expected, test.input, funcResult)
55 }
56 })
57 }
58}

Callers

nothing calls this directly

Calls 1

IsAutomorphicFunction · 0.85

Tested by

no test coverage detected