From 6fe25548bd78a283f94c48bc76e98bf267f5d3bb Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 17 Apr 2016 22:04:42 +0200 Subject: [PATCH] Add another filter test --- src/restic/filter/filter_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/restic/filter/filter_test.go b/src/restic/filter/filter_test.go index 096edb4c6..2fb04cdf5 100644 --- a/src/restic/filter/filter_test.go +++ b/src/restic/filter/filter_test.go @@ -45,6 +45,8 @@ var matchTests = []struct { {"/foo/../bar", "/bar", true}, {"/foo", "/foo/baz", true}, {"/foo/", "/foo/baz", true}, + {"/foo/*", "/foo", false}, + {"/foo/*", "/foo/baz", true}, {"bar", "/foo/bar/baz", true}, {"bar", "/foo/bar/test.go", true}, {"/foo/*test.*", "/foo/bar/test.go", false},