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
Texas quotes do The Wrong Thing when interpolating vars with strings with spaces in them in Rakudo #994
Comments
From @masak<pmichaud> rakudo: my $foo = 'hello world'; say «$foo».elems Expected value from the evaluation: 2, because "hello" and "world" |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-literals/quoting.t commit 1f9c51eaf789f73e030942af2e90c0252f7dabcc [t/spec] Test for RT 65654 Inline Patchdiff --git a/t/spec/S02-literals/quoting.t b/t/spec/S02-literals/quoting.t
index 1f14139..dfad284 100644
--- a/t/spec/S02-literals/quoting.t
+++ b/t/spec/S02-literals/quoting.t
@@ -1,8 +1,6 @@
use v6;
-
use Test;
-
-plan 140;
+plan *;
my $foo = "FOO";
my $bar = "BAR";
@@ -251,6 +249,13 @@ Note that non-ASCII tests are kept in quoting-unicode.t
is(~@q4, 'FOO gorch BAR', ", and long form");
};
+#?rakudo todo 'RT 65654'
+{
+ my $rt65654 = 'two words';
+ is «a $rt65654 z».elems, 4, 'interpolate variable with spaces (French)';
+ is <<a $rt65654 z>>.elems, 4, 'interpolate variable with spaces (Texas)';
+}
+
#?rakudo skip '«...»'
{
#L<S02/Literals/"relationship" "single quotes" "double angles">
@@ -531,4 +536,6 @@ Hello, World
is 'a\\b\''.chars, 4, 'backslash and single quote';
}
+done_testing;
+
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @cokeOn Thu May 14 07:48:19 2009, masak wrote:
Misbehavior has changed: 01:11 <[Coke]> rakudo: my $foo = 'hello world'; say «$foo».elems -- |
From @cokeOn Sun Jan 30 22:14:47 2011, coke wrote:
Behavior's the same, but the error changed:
-- |
From @cokeOn Sun May 27 20:29:15 2012, coke wrote:
This is now working, and the test was already un-TODO'd. -- |
@coke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#65654 (status was 'resolved')
Searchable as RT65654$
The text was updated successfully, but these errors were encountered: