diff options
author | Rob Pike <r@golang.org> | 2010-06-22 16:02:14 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-06-22 16:02:14 -0700 |
commit | 6514206eca362d767c87f8f8e4045b7ce40e714b (patch) | |
tree | b39fa10c3bb8146f135b78be0aa3131ce5fa07f6 /src/pkg/regexp/all_test.go | |
parent | 9d205d3b9f5cda77ff1dfd0e5dc9320923cd0470 (diff) | |
download | golang-6514206eca362d767c87f8f8e4045b7ce40e714b.tar.gz |
regexp: bug fix: need to track whether match begins with fixed prefix.
Fixes issue 872.
R=rsc
CC=golang-dev
http://codereview.appspot.com/1731043
Diffstat (limited to 'src/pkg/regexp/all_test.go')
-rw-r--r-- | src/pkg/regexp/all_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/regexp/all_test.go b/src/pkg/regexp/all_test.go index fd7ee2acb..9936d4f45 100644 --- a/src/pkg/regexp/all_test.go +++ b/src/pkg/regexp/all_test.go @@ -100,7 +100,8 @@ var matches = []tester{ // fixed bugs tester{`ab$`, "cab", vec{1, 3}}, - tester{`axxb$`, "axxcb", vec{}}, + tester{`data`, "daXY data", vec{5, 9}}, + tester{`da(.)a$`, "daXY data", vec{5, 9, 7, 8}}, // can backslash-escape any punctuation tester{`\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\{\|\}\~`, |