mirror of
https://github.com/golang/go
synced 2024-11-18 06:14:46 -07:00
path/filepath: fix TestGlobError
Change-Id: I7776547332066e1d7651e9aa06eec301dfaf38bc Reviewed-on: https://go-review.googlesource.com/45892 Reviewed-by: Rob Pike <r@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
eb86abaa36
commit
827be89a69
@ -154,8 +154,8 @@ func TestGlob(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGlobError(t *testing.T) {
|
||||
_, err := Glob("[7]")
|
||||
if err != nil {
|
||||
_, err := Glob("[]")
|
||||
if err == nil {
|
||||
t.Error("expected error for bad pattern; got none")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user