mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
src/pkg/[n-z]*: gofix -r error -force=error
R=golang-dev, bsiegert, iant CC=golang-dev https://golang.org/cl/5294074
This commit is contained in:
parent
c2049d2dfe
commit
eb6929299b
166 changed files with 1139 additions and 1238 deletions
|
|
@ -5,7 +5,6 @@
|
|||
package regexp
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
|
@ -53,10 +52,10 @@ var bad_re = []stringError{
|
|||
}
|
||||
*/
|
||||
|
||||
func compileTest(t *testing.T, expr string, error os.Error) *Regexp {
|
||||
func compileTest(t *testing.T, expr string, error error) *Regexp {
|
||||
re, err := Compile(expr)
|
||||
if err != error {
|
||||
t.Error("compiling `", expr, "`; unexpected error: ", err.String())
|
||||
t.Error("compiling `", expr, "`; unexpected error: ", err.Error())
|
||||
}
|
||||
return re
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue