]> Sergey Matveev's repositories - path-extractor.git/blobdiff - pe_test.go
Path-extractor doesn't match this
[path-extractor.git] / pe_test.go
index 948f82087693538893e6147e40efee60979dccbb..58c138fc877e173254de4f87f73afeba02df93a3 100644 (file)
@@ -8,11 +8,21 @@ 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)
        }
 
+       output = GetAllMatches(" this.user ")
+       if len(output) != 0 {
+               t.Errorf("Matches this.user", output)
+       }
+
        output = GetAllMatches(" mail@mail.com ")
        if len(output) != 0 {
                t.Errorf("Matches email adresses", output)