X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Flei_external.t;fp=t%2Flei_external.t;h=78f71658529745a99b41d6bc3ef379d2ea49ca90;hb=9eb840de546dfe9b6c6aa1588f5bb8c0153c7d71;hp=0ef6633df0282e84c4cf91dff7c1e349c2b3244c;hpb=330190c8d934d32984620208764b21e539cf68ef;p=public-inbox.git diff --git a/t/lei_external.t b/t/lei_external.t index 0ef6633d..78f71658 100644 --- a/t/lei_external.t +++ b/t/lei_external.t @@ -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;