]> Sergey Matveev's repositories - path-extractor.git/commitdiff
Add new test function call should not match
authorEdgar HIPP <hipp.edg@gmail.com>
Sun, 30 Aug 2015 15:07:02 +0000 (17:07 +0200)
committerEdgar HIPP <hipp.edg@gmail.com>
Sun, 30 Aug 2015 15:07:02 +0000 (17:07 +0200)
pe_test.go

index f560e37249949d7b17c04e94956ae8fd2d317078..acb93c13b04ede10c558f6e517ecb49d5ebcfc73 100644 (file)
@@ -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)