diff options
Diffstat (limited to 'libgo/go/path/match_test.go')
-rw-r--r-- | libgo/go/path/match_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/path/match_test.go b/libgo/go/path/match_test.go index 730b6b90395..6b0676f81fd 100644 --- a/libgo/go/path/match_test.go +++ b/libgo/go/path/match_test.go @@ -61,6 +61,11 @@ var matchTests = []MatchTest{ {"[-x]", "a", false, ErrBadPattern}, {"\\", "a", false, ErrBadPattern}, {"[a-b-c]", "a", false, ErrBadPattern}, + {"[", "a", false, ErrBadPattern}, + {"[^", "a", false, ErrBadPattern}, + {"[^bc", "a", false, ErrBadPattern}, + {"a[", "a", false, nil}, + {"a[", "ab", false, ErrBadPattern}, {"*x", "xxx", true, nil}, } |