From 7533a612037f1cd9b9c0d80cb8aa7530896fc03a Mon Sep 17 00:00:00 2001 From: Michael Ploujnikov Date: Sun, 10 Apr 2016 02:41:28 +0000 Subject: [PATCH] unifySubs: add two trivial test cases --- lib/model/model_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/model/model_test.go b/lib/model/model_test.go index dee19257..828437cc 100644 --- a/lib/model/model_test.go +++ b/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" {