Skip to content

Commit 8a98e6e

Browse files
committed
test control forms of \c
1 parent 7c3299d commit 8a98e6e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

S02-literals/quoting.t

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use v6;
22
use Test;
3-
plan 160;
3+
plan 162;
44

55
my $foo = "FOO";
66
my $bar = "BAR";
@@ -557,12 +557,10 @@ is <<<\>'n'>>.join('|'), '<>|n', 'texas quotes edge case';
557557
is "$x >> ", "42 >> ", '>> in interpolation is not shift operator';
558558
}
559559
560-
# RT #83952
561-
{
562-
try { EVAL 'my $ya="\cIa"' };
563-
my $error = ~$!;
564-
ok $error ~~ / '\'I\' is not a valid number' /, "\\c followed by non-number";
565-
}
560+
# (RT #83952 is wrong about \cI being an error)
561+
is "\cIa", "\ta", '\cI is a TAB';
562+
is "\c?a", "\x[7f]a", '\c? is a DEL';
563+
is "\c@a", "\0a", '\c@ is a NUL';
566564
567565
{
568566
throws_like { EVAL 'q< < >' },

0 commit comments

Comments
 (0)