remove simplify mock

This commit is contained in:
func25 2024-09-04 20:15:40 +07:00
parent 3fc28e8053
commit 4b7e5e0cb2
No known key found for this signature in database
GPG key ID: 746D8D0E266CD0E5

View file

@ -138,17 +138,6 @@ var simplifyTests = []struct {
{`(){0,2}`, `(?:()()?)?`},
}
func TestSimplify2(t *testing.T) {
re, err := Parse(`[a-ee-gg-m]`, Perl|DotNL)
if err != nil {
t.Fatal(err)
}
s := re.Simplify().String()
if s != `[a-m]` {
t.Errorf("Simplify(%#q) = %#q, want %#q", re.String(), s, `[a-m]`)
}
}
func TestSimplify(t *testing.T) {
for _, tt := range simplifyTests {
re, err := Parse(tt.Regexp, MatchNL|Perl&^OneLine)