Permalink
Browse files

[t/spec] \0 is a valid escape sequence

git-svn-id: http://svn.pugscode.org/pugs@30431 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
moritz
moritz committed Apr 21, 2010
1 parent 034c361 commit f320cbb7d8392710744cef6ee3f06a91ac73f8f6
Showing with 2 additions and 5 deletions.
  1. +2 −5 S02-literals/char-by-number.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 43;
+plan 42;
=begin kwid
@@ -65,11 +65,8 @@ is("\c65,66,67", 'A,66,67', '\clist not valid');
eval_dies_ok q{"\10"}, '"\10" form is no longer valid Perl 6';
}
-# L<S02/Literals/illegal "\0123 form">
-#?rakudo todo 'Detecting malformed escape sequences NYI'
{
- eval_dies_ok q{"\040"}, '"\040" form is no longer valid Perl 6';
- eval_dies_ok q{"\0123"}, '"\0123" form is no longer valid Perl 6';
+ is "\040", "\x[0]40", '\0stuff is actually valid';
}
# L<S02/Literals/"Only \0 remains" "only if"

0 comments on commit f320cbb

Please sign in to comment.