mirror of
https://github.com/golang/go
synced 2024-11-26 04:58:00 -07:00
Add test to check additional onepass regexps
This commit is contained in:
parent
7310f43095
commit
e9e0c29b74
@ -142,6 +142,7 @@ var onePassTests = []struct {
|
||||
{`^(?:(a)|(?:a*))$`, false},
|
||||
{`^(?:(?:(?:.(?:$))?))$`, true},
|
||||
{`^abcd$`, true},
|
||||
{`^abcd`, true},
|
||||
{`^(?:(?:a{0,})*?)$`, false},
|
||||
{`^(?:(?:a+)*)$`, true},
|
||||
{`^(?:(?:a|(?:aa)))$`, true},
|
||||
@ -154,6 +155,7 @@ var onePassTests = []struct {
|
||||
{`^(?:(?:aa)|a)$`, true},
|
||||
{`^[a-c]*`, false},
|
||||
{`^...$`, true},
|
||||
{`^...`, true},
|
||||
{`^(?:a|(?:aa))$`, true},
|
||||
{`^a((b))c$`, true},
|
||||
{`^a.[l-nA-Cg-j]?e$`, true},
|
||||
|
Loading…
Reference in New Issue
Block a user