pe_test.go | 10 ++++++++++ diff --git a/pe_test.go b/pe_test.go index 2deeae75e91b5c61daf315ccba39ec9106ee0ba6..5d447f4131a81e92a4709db8c89b6ad01f9b4377 100644 --- a/pe_test.go +++ b/pe_test.go @@ -104,6 +104,16 @@ } output = GetAllMatches("and/or", MatchOptions{}) if len(output) != 0 { + t.Errorf("Matches and/or", output[0]) + } + + output = GetAllMatches("hello user.test.js", MatchOptions{}) + if output[0] != "user.test.js" { + t.Errorf("Matches date", output[0]) + } + + output = GetAllMatches(" mail@mail.com ", MatchOptions{}) + if len(output) != 0 { t.Errorf("Matches and/or adresses", output) }