projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e53bc94
)
Add test for ignoring ~$ files
author
Ask Bjørn Hansen
<ask@develooper.com>
Sat, 1 Mar 2014 04:18:06 +0000
(20:18 -0800)
committer
spf13
<steve.francia@gmail.com>
Sat, 1 Mar 2014 04:24:09 +0000
(23:24 -0500)
source/content_directory_test.go
patch
|
blob
|
history
diff --git
a/source/content_directory_test.go
b/source/content_directory_test.go
index 7f06160466303644655793da4853b4e12ee2876a..d8ed8128ab87a9bbe2bf7b801b3314bc95da54a5 100644
(file)
--- 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 {