Просмотр исходного кода

Test combination of prefixes (@benapetr)

Lode Hoste 10 лет назад
Родитель
Сommit
f21dfea965
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      internal/fnmatch/fnmatch_test.go

+ 1 - 0
internal/fnmatch/fnmatch_test.go

@@ -54,6 +54,7 @@ var testcases = []testcase{
 
 	{"foo.txt", "foo.TXT", CaseFold, true},
 	{"(?i)foo.txt", "foo.TXT", 0, true},
+	{"(?i)**foo.txt", "/dev/tmp/foo.TXT", 0, true},
 
 	// These characters are literals in glob, but not in regexp.
 	{"hey$hello", "hey$hello", 0, true},