Skip to content

Commit 0bf3998

Browse files
committed
Change tests to reflect "no unspace in regex" rule
1 parent 1bd3f09 commit 0bf3998

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

t/p5regex/01-p5regex.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ for @files -> $fn {
7878
todo($m[0], 1);
7979
}
8080
else {
81-
next if $l ~~ /^\s*\# | ^\s*$ /;
81+
next if $l ~~ /^ \s* '#' | ^\s*$ /;
8282
test_line($l);
8383
$tests := $tests + 1;
8484
}

t/qregex/01-qregex.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ for @files -> $fn {
8585
todo($m[0], 1);
8686
}
8787
else {
88-
next if $l ~~ /^\s*\# | ^\s*$ /;
88+
next if $l ~~ /^ \s* '#' | ^ \s* $ /;
8989
test_line($l);
9090
$tests := $tests + 1;
9191
}

t/qregex/rx_metachars

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def\z abc\ndef <Unsupported> retired metachars (\z)
6666
abc # def abc#def y comments (#)
6767
abc # xyz abc#def y comments (#)
6868
abc # def \n \$ abc#def y comments (#)
69-
abc \# def abc#def y comments (#)
70-
abc \# xyz abc#def n comments (#)
71-
^ abc \# def $ abc#def y comments (#)
69+
abc '#' def abc#def y comments (#)
70+
abc '#' xyz abc#def n comments (#)
71+
^ abc '#' def $ abc#def y comments (#)
7272
^^ abc \n ^^ def abc\ndef y line beginnings and endings (^^)
7373
# todo :pugs<feature>
7474
^^ abc \n ^^ def \n ^^ abc\ndef\n n line beginnings and endings (^^)

0 commit comments

Comments
 (0)