mirror of https://github.com/golang/go.git
parent
8d76a15122
commit
c44f95ff48
|
|
@ -159,11 +159,11 @@ func main() {
|
||||||
}
|
}
|
||||||
fmt.Printf("%s: expected no error; got %q\n", t.name, err)
|
fmt.Printf("%s: expected no error; got %q\n", t.name, err)
|
||||||
case t.err != "" && err != "":
|
case t.err != "" && err != "":
|
||||||
|
if strings.Index(err, t.err) < 0 {
|
||||||
if !bad {
|
if !bad {
|
||||||
bad = true
|
bad = true
|
||||||
fmt.Printf("BUG\n")
|
fmt.Printf("BUG\n")
|
||||||
}
|
}
|
||||||
if strings.Index(err, t.err) < 0 {
|
|
||||||
fmt.Printf("%s: expected %q; got %q\n", t.name, t.err, err)
|
fmt.Printf("%s: expected %q; got %q\n", t.name, t.err, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue