Add tests
authorKarl Williamson <public@khwilliamson.com>
Thu, 6 Feb 2014 04:59:23 +0000 (21:59 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 6 Feb 2014 05:17:56 +0000 (22:17 -0700)
These are for commit 421e43ba3017755892f18a5690b66a6ed8717fa9

t/lib/warnings/toke
t/re/reg_mesg.t

index 5a38ba8..92e94ad 100644 (file)
@@ -1378,6 +1378,12 @@ OPTION fatal
 Use ";" instead of "\c{" at - line 3.
 ########
 # toke.c
+my $a = "\câ";
+EXPECT
+OPTION fatal
+Character following "\c" must be printable ASCII at - line 2.
+########
+# toke.c
 use warnings 'syntax' ;
 my $a = qr/foo/du;
 $a = qr/foo/lai;
index 0563264..bf4735f 100644 (file)
@@ -223,6 +223,7 @@ my @death =
  "m/(?('/" => "Sequence (?('... not terminated {#} m/(?('{#}/",
  'm/\g{/'  => 'Sequence \g{... not terminated {#} m/\g{{#}/',
  'm/\k</'  => 'Sequence \k<... not terminated {#} m/\k<{#}/',
+ 'm/\cß/' => "Character following \"\\c\" must be printable ASCII",
 );
 
 my @death_utf8 = mark_as_utf8(
@@ -302,7 +303,8 @@ my @death_utf8 = mark_as_utf8(
  '/(?[ \p{ ネ = bar } ])/' => 'Property \'ネ = bar\' is unknown {#} m/(?[ \p{ ネ = bar }{#} ])/',
  '/ネ(?[ \t ]/' => 'Syntax error in (?[...]) in regex m/ネ(?[ \t ]/',
  '/(?[ \t + \e # ネ This was supposed to be a comment ])/' => 'Syntax error in (?[...]) in regex m/(?[ \t + \e # ネ This was supposed to be a comment ])/',
- 'm/(*ネ)ネ/' => q<Unknown verb pattern 'ネ' {#} m/(*ネ){#}ネ/>
+ 'm/(*ネ)ネ/' => q<Unknown verb pattern 'ネ' {#} m/(*ネ){#}ネ/>,
+ '/\cネ/' => "Character following \"\\c\" must be printable ASCII",
 );
 push @death, @death_utf8;