]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei_external.t
lei_external: fix+test handling of escaped braces
[public-inbox.git] / t / lei_external.t
index 0ef6633df0282e84c4cf91dff7c1e349c2b3244c..78f71658529745a99b41d6bc3ef379d2ea49ca90 100644 (file)
@@ -28,5 +28,7 @@ is_deeply($glob2re->('{a'), undef, 'open left brace');
 is_deeply($glob2re->('a}'), undef, 'open right brace');
 is_deeply($glob2re->('*.[ch]'), '[^/]*?\\.[ch]', 'suffix glob');
 is_deeply($glob2re->('{[a-z],9,}'), '([a-z]|9|)' , 'brace with range');
+is_deeply($glob2re->('\\{a,b\\}'), undef, 'escaped brace');
+is_deeply($glob2re->('\\\\{a,b}'), '\\\\\\\\(a|b)', 'fake escape brace');
 
 done_testing;