From 165302dcb37f7ed15890dabb56f9d7f57d077f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ask=20Bj=C3=B8rn=20Hansen?= Date: Fri, 28 Feb 2014 20:18:06 -0800 Subject: [PATCH] Add test for ignoring ~$ files --- source/content_directory_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/content_directory_test.go b/source/content_directory_test.go index 7f0616046..d8ed8128a 100644 --- a/source/content_directory_test.go +++ b/source/content_directory_test.go @@ -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 {