Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change tests to reflect "no unspace in regex" rule
  • Loading branch information
Mouq committed Sep 28, 2013
1 parent 1bd3f09 commit 0bf3998
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion t/p5regex/01-p5regex.t
Expand Up @@ -78,7 +78,7 @@ for @files -> $fn {
todo($m[0], 1);
}
else {
next if $l ~~ /^\s*\# | ^\s*$ /;
next if $l ~~ /^ \s* '#' | ^\s*$ /;
test_line($l);
$tests := $tests + 1;
}
Expand Down
2 changes: 1 addition & 1 deletion t/qregex/01-qregex.t
Expand Up @@ -85,7 +85,7 @@ for @files -> $fn {
todo($m[0], 1);
}
else {
next if $l ~~ /^\s*\# | ^\s*$ /;
next if $l ~~ /^ \s* '#' | ^ \s* $ /;
test_line($l);
$tests := $tests + 1;
}
Expand Down
6 changes: 3 additions & 3 deletions t/qregex/rx_metachars
Expand Up @@ -66,9 +66,9 @@ def\z abc\ndef <Unsupported> retired metachars (\z)
abc # def abc#def y comments (#)
abc # xyz abc#def y comments (#)
abc # def \n \$ abc#def y comments (#)
abc \# def abc#def y comments (#)
abc \# xyz abc#def n comments (#)
^ abc \# def $ abc#def y comments (#)
abc '#' def abc#def y comments (#)
abc '#' xyz abc#def n comments (#)
^ abc '#' def $ abc#def y comments (#)
^^ abc \n ^^ def abc\ndef y line beginnings and endings (^^)
# todo :pugs<feature>
^^ abc \n ^^ def \n ^^ abc\ndef\n n line beginnings and endings (^^)
Expand Down

0 comments on commit 0bf3998

Please sign in to comment.