From: Dominik Honnef Date: Thu, 15 Jun 2017 20:18:24 +0000 (+0200) Subject: path/filepath: fix TestGlobError X-Git-Tag: go1.9beta2~68 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=827be89a69534cca8245df9c435d13387eea9667;p=gostls13.git path/filepath: fix TestGlobError Change-Id: I7776547332066e1d7651e9aa06eec301dfaf38bc Reviewed-on: https://go-review.googlesource.com/45892 Reviewed-by: Rob Pike Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- diff --git a/src/path/filepath/match_test.go b/src/path/filepath/match_test.go index 3bd5598ed9..18d38bf5bb 100644 --- a/src/path/filepath/match_test.go +++ b/src/path/filepath/match_test.go @@ -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") } }