summaryrefslogtreecommitdiff
path: root/src/pkg/regexp/all_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-06-22 16:02:14 -0700
committerRob Pike <r@golang.org>2010-06-22 16:02:14 -0700
commit6514206eca362d767c87f8f8e4045b7ce40e714b (patch)
treeb39fa10c3bb8146f135b78be0aa3131ce5fa07f6 /src/pkg/regexp/all_test.go
parent9d205d3b9f5cda77ff1dfd0e5dc9320923cd0470 (diff)
downloadgolang-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.go3
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{`\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\{\|\}\~`,