From e9e0c29b7448c8ab7cb203c1ed58766dc5d91456 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Mon, 11 Oct 2021 21:20:40 +0100 Subject: [PATCH] Add test to check additional onepass regexps --- src/regexp/onepass_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/regexp/onepass_test.go b/src/regexp/onepass_test.go index 3f44dc7b150..70eba1f577a 100644 --- a/src/regexp/onepass_test.go +++ b/src/regexp/onepass_test.go @@ -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},