mirror of
https://github.com/golang/go
synced 2024-11-18 08:24:44 -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) {
|
func TestGlobError(t *testing.T) {
|
||||||
_, err := Glob("[7]")
|
_, err := Glob("[]")
|
||||||
if err != nil {
|
if err == nil {
|
||||||
t.Error("expected error for bad pattern; got none")
|
t.Error("expected error for bad pattern; got none")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user