Skip to content

Commit

Permalink
"\01" is not illegal, just doesn't dwym
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Nov 10, 2014
1 parent 22a9881 commit 82914ab
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions S02-literals/char-by-number.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 42;
plan 38;

# L<S02/Radix interpolation>

Expand Down Expand Up @@ -80,21 +80,4 @@ is("\c65,66,67", 'A,66,67', '\clist not valid');
is "\0fff", chr(0) ~ 'fff', 'next char of \0 is `f`';
}

#?rakudo todo 'Detecting malformed escape sequences NYI'
#?niecza todo 'Detecting malformed escape sequences NYI'
{
throws_like { EVAL q{"\00"} },
X::Comp::AdHoc,
'next char of \0 is 0';
throws_like { EVAL q{"\01"} },
X::Comp::AdHoc,
'next char of \0 is 1';
throws_like { EVAL q{"\05"} },
X::Comp::AdHoc,
'next char of \0 is 5';
throws_like { EVAL q{"\07"} },
X::Comp::AdHoc,
'next char of \0 is 7';
}

# vim: ft=perl6

0 comments on commit 82914ab

Please sign in to comment.