From 8c5300370a9311b9b5296854b04c69eaee135d00 Mon Sep 17 00:00:00 2001 From: Edgar HIPP Date: Sun, 30 Aug 2015 17:07:20 +0200 Subject: [PATCH] Add new test --- pe_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pe_test.go b/pe_test.go index 2deeae7..5d447f4 100644 --- a/pe_test.go +++ b/pe_test.go @@ -103,6 +103,16 @@ func TestEverything(t *testing.T) { } 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) } -- 2.44.0