Add test for ignoring ~$ files

This commit is contained in:
Ask Bjørn Hansen 2014-02-28 20:18:06 -08:00
parent 87d5760abe
commit 165302dcb3

View file

@ -15,6 +15,10 @@ func TestIgnoreDotFiles(t *testing.T) {
{".barfoo.md", true}, {".barfoo.md", true},
{".md", true}, {".md", true},
{"", true}, {"", true},
{"foobar/barfoo.md~", true},
{".foobar/barfoo.md~", true},
{"foobar~/barfoo.md", false},
{"foobar/bar~foo.md", false},
} }
for _, test := range tests { for _, test := range tests {