X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=pe_test.go;fp=pe_test.go;h=719be92364388d95299b419e370c626b57fdd7c7;hb=e77883262071c86c29f783e6ce3be98173398dc7;hp=eefbbfe79a922799fb42f9528d9e6cbafb54b1f3;hpb=73b6fdd2e1d59e3b54dbdecdf5b01efa3ba38261;p=path-extractor.git diff --git a/pe_test.go b/pe_test.go index eefbbfe..719be92 100644 --- a/pe_test.go +++ b/pe_test.go @@ -13,6 +13,14 @@ func TestEverything(t *testing.T) { t.Errorf("Matches sentence", output) } + output = GetAllMatches("prefix=/usr/bin", MatchOptions{}) + if len(output) != 1 { + t.Errorf("Should match =/usr/bin", output) + } + if output[0] != "/usr/bin" { + t.Errorf("Doesn't match statement correctly", output) + } + output = GetAllMatches("/var//log", MatchOptions{}) if len(output) != 0 { t.Errorf("Matches double //", output)