]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: fix TestGlobError
authorDominik Honnef <dominik@honnef.co>
Thu, 15 Jun 2017 20:18:24 +0000 (22:18 +0200)
committerDominik Honnef <dominik@honnef.co>
Thu, 15 Jun 2017 21:53:23 +0000 (21:53 +0000)
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>

src/path/filepath/match_test.go

index 3bd5598ed9a7ce8ae472079ccd5abb83edd5aff6..18d38bf5bb3c65939b15346692cef21e9c79b58d 100644 (file)
@@ -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")
        }
 }