Commit 827be89a authored by Dominik Honnef's avatar Dominik Honnef

path/filepath: fix TestGlobError

Change-Id: I7776547332066e1d7651e9aa06eec301dfaf38bc
Reviewed-on: https://go-review.googlesource.com/45892Reviewed-by: default avatarRob Pike <r@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent eb86abaa
...@@ -154,8 +154,8 @@ func TestGlob(t *testing.T) { ...@@ -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")
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment