Skip to content

Commit 5f93731

Browse files
committed
Find some bracket variants
1 parent d201389 commit 5f93731

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xt/braces.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ sub test-it(Str $output, Str $file) {
2323
my $msg;
2424

2525
if $output ~~ /:i <!after curly> ' braces' / {
26-
$msg ~= "Found 'braces' without 'curly'. ";
26+
$msg ~= "Found 'braces' without 'curly'. ";
2727
$ok = False;
2828
}
2929

30-
if $output ~~ /:i <!after square> <!after angle> ' brackets' / {
31-
$msg ~= "Found 'brackets' without 'square' ";
30+
if $output ~~ /:i <!after square> <!after angle> ' ' ('bracket' [s|ed]?) / {
31+
$msg ~= "Found '{~$0}' without 'square' or 'angle'.";
3232
$ok = False;
3333
}
34-
34+
3535
ok $ok, $file ~ ($msg ?? ": $msg" !! "");
3636
}
3737

0 commit comments

Comments
 (0)