]> Sergey Matveev's repositories - path-extractor.git/blobdiff - pe_test.go
Check if path ends with '.', if yes, invalid path
[path-extractor.git] / pe_test.go
index 948f82087693538893e6147e40efee60979dccbb..20999277318755174e7fede997d55104cb16c09d 100644 (file)
@@ -8,6 +8,11 @@ func TestGitIgnore(t *testing.T) {
                t.Errorf("Doesnt match files", output)
        }
 
+       output = GetAllMatches("I have a cat.")
+       if len(output) != 0 {
+               t.Errorf("Matches sentence", output)
+       }
+
        output = GetAllMatches("hello .gitignore")
        if output[0] != ".gitignore" {
                t.Errorf("Doesnt match hidden files", output)