Browse Source

unifySubs: add two trivial test cases

Michael Ploujnikov 9 years ago
parent
commit
7533a61203
1 changed files with 12 additions and 0 deletions
  1. 12 0
      lib/model/model_test.go

+ 12 - 0
lib/model/model_test.go

@@ -1287,6 +1287,18 @@ func TestUnifySubs(t *testing.T) {
 			[]string{},
 			[]string{".stfolder", ".stignore", "foo"},
 		},
+		{
+			// 8. explicit request to scan all
+			nil,
+			[]string{"foo"},
+			nil,
+		},
+		{
+			// 9. empty list of subs
+			[]string{},
+			[]string{"foo"},
+			nil,
+		},
 	}
 
 	if runtime.GOOS == "windows" {