go/src/path
John Gibb f6a5fada27 path: present the correct error message in TestMatch
The message was hardcoded to indicate that the test wanted a nil error, even
though in some cases a specific error was wanted. This patch fixes the
message to print the wanted error.

Change-Id: Id86ea89d6f41f25bfa164acc50142ae8ff0ec410
GitHub-Last-Rev: c220374845
GitHub-Pull-Request: golang/go#26674
Reviewed-on: https://go-review.googlesource.com/126619
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-07-29 19:18:48 +00:00
..
filepath filepath: updates doc to give case where WalkFunc info arg may be nil 2018-07-18 19:53:37 +00:00
example_test.go path: add example for Match 2018-02-13 18:45:33 +00:00
match.go path: remove filename mentions from pattern godocs 2018-02-14 10:17:44 +00:00
match_test.go path: present the correct error message in TestMatch 2018-07-29 19:18:48 +00:00
path.go all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
path_test.go