Add test for ignoring ~$ files

This commit is contained in:
Ask Bjørn Hansen authored and spf13 committed 2014-02-28 23:24:09 -05:00
1 parent e53bc948a5
commit 2c0ded7f9f
1 file changed
+4
+4
View File
@@ -15,6 +15,10 @@ func TestIgnoreDotFiles(t *testing.T) {
{".barfoo.md", true},
{".md", true},
{"", true},
{"foobar/barfoo.md~", true},
{".foobar/barfoo.md~", true},
{"foobar~/barfoo.md", false},
{"foobar/bar~foo.md", false},
}
for _, test := range tests {