Added more tests

master
Aadhavan Srinivasan 3 days ago
parent 368941e5c7
commit ca8d32cd7f

@ -476,6 +476,10 @@ var reTests = []struct {
{`a[^>]*b`, nil, `a>b`, []Group{}},
{`^a*$`, nil, `foo`, []Group{}},
// Out-of-bounds for character classes
{`[b-e]`, nil, `a`, []Group{}},
{`[b-e]`, nil, `f`, []Group{}},
{`*?`, nil, `-`, nil},
{`a*?`, nil, `-`, nil}, // non-greedy operators are not supported

Loading…
Cancel
Save