]> Sergey Matveev's repositories - path-extractor.git/blobdiff - pe_test.go
Shouldn't contain \
[path-extractor.git] / pe_test.go
index bfcd26a47bf94b880e9c43957134da083d63fc3d..a2c563aabcc068f417ef299cdc5688a4f269b8f3 100644 (file)
@@ -13,6 +13,14 @@ func TestEverything(t *testing.T) {
                t.Errorf("Matches sentence", output)
        }
 
+       output = GetAllMatches("/usr/bin/env\\", MatchOptions{})
+       if len(output) != 1 {
+               t.Errorf("Doesn't match escaped", output)
+       }
+       if output[0] != "/usr/bin/env" {
+               t.Errorf("Doesn't match escaped exactly", output)
+       }
+
        output = GetAllMatches("!#/usr/bin/env", MatchOptions{})
        if len(output) != 1 {
                t.Errorf("Doesn't match shebang", output)