1
0
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:
Bryan Boreham 2021-10-11 21:20:40 +01:00
parent 7310f43095
commit e9e0c29b74

View File

@ -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},