Add comments directive to ignores

This commit is contained in:
Audrius Butkevicius
2014-09-16 22:22:21 +01:00
parent 760a9d6d35
commit d96ce23451
2 changed files with 20 additions and 0 deletions

View File

@@ -133,3 +133,21 @@ func TestCaseSensitivity(t *testing.T) {
}
}
}
func TestCommentsAndBlankLines(t *testing.T) {
stignore := `
// foo
//bar
//!baz
//#dex
// ips
`
pats, _ := ignore.Parse(bytes.NewBufferString(stignore), ".stignore")
if len(pats) > 0 {
t.Errorf("Expected no patterns")
}
}