diff options
author | Russ Cox <rsc@golang.org> | 2009-01-20 14:40:40 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-01-20 14:40:40 -0800 |
commit | 4ae0ed29a283c16d1c83ef704c4d75170c3801e6 (patch) | |
tree | f8305b165ee5ff41e9ef2b0f76e26f7ab3ece269 /src/lib/regexp/all_test.go | |
parent | 3986ef877ccd4db750b5050e318dff78f7e55d19 (diff) | |
download | golang-4ae0ed29a283c16d1c83ef704c4d75170c3801e6.tar.gz |
delete export
TBR=r
OCL=23121
CL=23127
Diffstat (limited to 'src/lib/regexp/all_test.go')
-rw-r--r-- | src/lib/regexp/all_test.go | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/lib/regexp/all_test.go b/src/lib/regexp/all_test.go index f72671ccf..5e9754934 100644 --- a/src/lib/regexp/all_test.go +++ b/src/lib/regexp/all_test.go @@ -36,16 +36,16 @@ type stringError struct { } var bad_re = []stringError{ stringError{ `*`, regexp.ErrBareClosure }, - stringError{ `(abc`, regexp.ErrUnmatchedLpar }, - stringError{ `abc)`, regexp.ErrUnmatchedRpar }, - stringError{ `x[a-z`, regexp.ErrUnmatchedLbkt }, - stringError{ `abc]`, regexp.ErrUnmatchedRbkt }, - stringError{ `[z-a]`, regexp.ErrBadRange }, - stringError{ `abc\`, regexp.ErrExtraneousBackslash }, - stringError{ `a**`, regexp.ErrBadClosure }, - stringError{ `a*+`, regexp.ErrBadClosure }, - stringError{ `a??`, regexp.ErrBadClosure }, - stringError{ `*`, regexp.ErrBareClosure }, + stringError{ `(abc`, regexp.ErrUnmatchedLpar }, + stringError{ `abc)`, regexp.ErrUnmatchedRpar }, + stringError{ `x[a-z`, regexp.ErrUnmatchedLbkt }, + stringError{ `abc]`, regexp.ErrUnmatchedRbkt }, + stringError{ `[z-a]`, regexp.ErrBadRange }, + stringError{ `abc\`, regexp.ErrExtraneousBackslash }, + stringError{ `a**`, regexp.ErrBadClosure }, + stringError{ `a*+`, regexp.ErrBadClosure }, + stringError{ `a??`, regexp.ErrBadClosure }, + stringError{ `*`, regexp.ErrBareClosure }, stringError{ `\x`, regexp.ErrBadBackslash }, } @@ -155,19 +155,19 @@ func executeTest(t *testing.T, expr string, str string, match []int) { } } -export func TestGoodCompile(t *testing.T) { +func TestGoodCompile(t *testing.T) { for i := 0; i < len(good_re); i++ { compileTest(t, good_re[i], nil); } } -export func TestBadCompile(t *testing.T) { +func TestBadCompile(t *testing.T) { for i := 0; i < len(bad_re); i++ { compileTest(t, bad_re[i].re, bad_re[i].err) } } -export func TestExecute(t *testing.T) { +func TestExecute(t *testing.T) { for i := 0; i < len(matches); i++ { test := &matches[i]; executeTest(t, test.re, test.text, test.match) @@ -185,7 +185,7 @@ func matchTest(t *testing.T, expr string, str string, match []int) { } } -export func TestMatch(t *testing.T) { +func TestMatch(t *testing.T) { for i := 0; i < len(matches); i++ { test := &matches[i]; matchTest(t, test.re, test.text, test.match) @@ -210,7 +210,7 @@ func matchStringsTest(t *testing.T, expr string, str string, match []int) { } } -export func TestMatchStrings(t *testing.T) { +func TestMatchStrings(t *testing.T) { for i := 0; i < len(matches); i++ { test := &matches[i]; matchTest(t, test.re, test.text, test.match) @@ -227,7 +227,7 @@ func matchFunctionTest(t *testing.T, expr string, str string, match []int) { } } -export func TestMatchFunction(t *testing.T) { +func TestMatchFunction(t *testing.T) { for i := 0; i < len(matches); i++ { test := &matches[i]; matchFunctionTest(t, test.re, test.text, test.match) |