(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestBooyerMoore(t *testing.T) { |
| 64 | for _, tc := range testCases { |
| 65 | t.Run(tc.name, func(t *testing.T) { |
| 66 | actual := BoyerMoore(tc.input, tc.pattern) |
| 67 | if !reflect.DeepEqual(actual, tc.expected) { |
| 68 | t.Errorf("Expected matches for pattern '%s' for string '%s' are: %v, but actual matches are: %v", tc.pattern, tc.input, tc.expected, actual) |
| 69 | } |
| 70 | }) |
| 71 | } |
| 72 | } |
nothing calls this directly
no test coverage detected