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)