(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func TestIsKrishnamurthyNumber(t *testing.T) { |
| 33 | for _, test := range retCases() { |
| 34 | t.Run(fmt.Sprintf("%d %s a Krishnamurthy Number", test.input, test.outputString), func(t *testing.T) { |
| 35 | res := IsKrishnamurthyNumber(test.input) |
| 36 | if res != test.output { |
| 37 | t.Errorf("for input %d, expected: %t, found: %t", test.input, test.output, res) |
| 38 | } |
| 39 | }) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func BenchmarkIsKrishnamurthyNumber(b *testing.B) { |
| 44 | for _, test := range retCases() { |
nothing calls this directly
no test coverage detected