(t *testing.T)
| 22 | } |
| 23 | |
| 24 | func TestRegexp_MatchString(t *testing.T) { |
| 25 | var a = assert.NewAssertion(t) |
| 26 | |
| 27 | { |
| 28 | var r = re.MustCompile("abc") |
| 29 | a.IsTrue(r.MatchString("abc")) |
| 30 | a.IsFalse(r.MatchString("ab")) |
| 31 | a.IsFalse(r.MatchString("ABC")) |
| 32 | } |
| 33 | |
| 34 | { |
| 35 | var r = re.MustCompile("(?i)abc|def|ghi") |
| 36 | a.IsTrue(r.MatchString("DEF")) |
| 37 | a.IsFalse(r.MatchString("ab")) |
| 38 | a.IsTrue(r.MatchString("ABC")) |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | func TestRegexp_Sub(t *testing.T) { |
| 43 | { |
nothing calls this directly
no test coverage detected