]> Sergey Matveev's repositories - path-extractor.git/blobdiff - pe_test.go
Shouldn't match //
[path-extractor.git] / pe_test.go
index 28f87f7afb3ddfb231e751b018861b1234057654..eefbbfe79a922799fb42f9528d9e6cbafb54b1f3 100644 (file)
@@ -13,6 +13,11 @@ func TestEverything(t *testing.T) {
                t.Errorf("Matches sentence", output)
        }
 
+       output = GetAllMatches("/var//log", MatchOptions{})
+       if len(output) != 0 {
+               t.Errorf("Matches double //", output)
+       }
+
        output = GetAllMatches("s/+//", MatchOptions{})
        if len(output) != 0 {
                t.Errorf("Doesn't match substitute", output)