Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STD.pm seems to allow \x[ c4, 20, c4 ] in strings, whereas Rakudo doesn't #942

Closed
p6rt opened this issue Apr 22, 2009 · 5 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Apr 22, 2009

Migrated from rt.perl.org#65004 (status was 'resolved')

Searchable as RT65004$

@p6rt
Copy link
Author

p6rt commented Apr 22, 2009

From @masak

<wollmers> I wonder if the specs allow insignificant white-space in
literals, e.g like say "\x[ c4, 20, c4 ]";
<masak> std​: say "\x[ c4, 20, c4 ]";
<p6eval> std 26365​: OUTPUT«ok 00​:04 35m␤»
<masak> rakudo​: say "\x[ c4, 20, c4 ]";
<p6eval> rakudo 5c8015​: OUTPUT«perl6regex parse error​: Invalid digit
in \x[...], \o[...], or \c[...] at offset 19, found ' ' [...]
<masak> wollmers​: opinions differ. :)
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Aug 13, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S02-literals/misc-interpolation.t

commit 4fcd5328be08a2bd3e55f8d21967e30342358c2e
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Thu Aug 13 03​:19​:09 2009 +0000

  [t/spec] Test for RT #​65004
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;27975 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S02-literals/misc-interpolation.t b/t/spec/S02-literals/misc-interpolation.t
index 7c7080e..3c9656c 100644
--- a/t/spec/S02-literals/misc-interpolation.t
+++ b/t/spec/S02-literals/misc-interpolation.t
@@ -10,7 +10,7 @@ These tests derived from comments in L<http://use.perl.org/~autrijus/journal/233
 
 =end pod
 
-plan 38;
+plan 39;
 
 my $world = "World";
 my $number = 1;
@@ -85,6 +85,7 @@ is(" \c[111] \c[107] ", ' o k ', "\\c[] respects whitespaces around it");
 # L<S02/Literals/separating the numbers with comma:>
 is("x  \x[41,42,43]  x",     "x  ABC  x",  "\\x[] allows multiple chars (1)");
 is("x  \x[41,42,00043]  x",  "x  ABC  x",  "\\x[] allows multiple chars (2)");
+is("x  \x[ 41, 42, 43 ]  x", "x  ABC  x",  "\\x[] allows multiple chars with white space");
 is("x  \c[65,66,67]  x",     "x  ABC  x",  "\\c[] allows multiple chars (1)");
 is("x  \c[65,66,000067]  x", "x  ABC  x",  "\\c[] allows multiple chars (2)");
 

@p6rt
Copy link
Author

p6rt commented Aug 13, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 13, 2009

From @kyleha

On Wed Apr 22 14​:04​:21 2009, masak wrote​:

<wollmers> I wonder if the specs allow insignificant white-space in
literals, e.g like say "\x[ c4, 20, c4 ]";
<masak> std​: say "\x[ c4, 20, c4 ]";
<p6eval> std 26365​: OUTPUT«ok 00​:04 35m␤»
<masak> rakudo​: say "\x[ c4, 20, c4 ]";
<p6eval> rakudo 5c8015​: OUTPUT«perl6regex parse error​: Invalid digit
in \x[...], \o[...], or \c[...] at offset 19, found ' ' [...]
<masak> wollmers​: opinions differ. :)
* masak submits rakudobug

This bug has been fixed, and there are now tests for it in the spectest
suite. I'm resolving this ticket.

@p6rt
Copy link
Author

p6rt commented Aug 13, 2009

@kyleha - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 13, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant