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:
Russ Cox 2011-11-01 22:05:34 -04:00
parent c2049d2dfe
commit eb6929299b
166 changed files with 1139 additions and 1238 deletions

View file

@ -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
}