(t *testing.T, p *regexp.Regexp, s string, expected bool)
| 11 | ) |
| 12 | |
| 13 | func validatePattern(t *testing.T, p *regexp.Regexp, s string, expected bool) { |
| 14 | assert.Equal(t, expected, p.MatchString(s), fmt.Sprintf("expected %q to match %v, but didn't", s, p)) |
| 15 | } |
| 16 | |
| 17 | func TestIBANPattern(t *testing.T) { |
| 18 | validatePattern(t, PatternIBAN, "NL29INGB8731326943", true) |
no outgoing calls
no test coverage detected
searching dependent graphs…