From: Edgar HIPP Date: Sun, 30 Aug 2015 15:07:02 +0000 (+0200) Subject: Add new test function call should not match X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=40e940f090b0036488c8254d062723b12a14efd7;p=path-extractor.git Add new test function call should not match --- diff --git a/pe_test.go b/pe_test.go index f560e37..acb93c1 100644 --- a/pe_test.go +++ b/pe_test.go @@ -48,6 +48,11 @@ func TestEverything(t *testing.T) { t.Errorf("Matches function call", output) } + output = GetAllMatches("fs.read(arg)", MatchOptions{}) + if len(output) != 0 { + t.Errorf("Matches function call", output) + } + output = GetAllMatches("~/www", MatchOptions{}) if len(output) == 0 || output[0] != "~/www" { t.Errorf("Doesnt match home", output)