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
Change to List.perl #757
Comments
From @pmichaudFor someone looking for something to do -- the recent change to In particular, currently List.perl produces square brackets in its Some examples: (1,2,3).perl; # old: "[1,2,3]" new: "(1,2,3)" or "\(1,2,3)" Thanks, Pm |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-names_and_variables/perl.t commit 7a029f8dfbb76deae6424164fc8e500b14879ee2 [t/spec] Test for RT #63724 Inline Patchdiff --git a/t/spec/S02-names_and_variables/perl.t b/t/spec/S02-names_and_variables/perl.t
index 36fa24e..2cad9ea 100644
--- a/t/spec/S02-names_and_variables/perl.t
+++ b/t/spec/S02-names_and_variables/perl.t
@@ -55,7 +55,7 @@ my @tests = (
[ { :a(1) }, { :b(2), :c(3) } ],
);
-plan 12 + 2*@tests;
+plan 16 + 2*@tests;
#?pugs emit force_todo 8, 45..50, 94, 96;
#?pugs emit unless $?PUGS_BACKEND eq "BACKEND_PUGS" {
@@ -168,3 +168,24 @@ plan 12 + 2*@tests;
# TODO: more tests that show eval($t1_init) has the same guts as $t1.
}
+
+# RT #63724
+{
+ my @original = (1,2,3);
+ my $dehydrated = @original.perl;
+ my @reconstituted = eval $dehydrated;
+
+ is @reconstituted, @original,
+ "eval of .perl returns original for '$dehydrated'";
+ #?rakudo todo 'RT #63724'
+ ok $dehydrated ~~ / '(' .* ',' .* ')' /, 'List.perl has parens and comma';
+
+ @original = (1,);
+ $dehydrated = @original.perl;
+ @reconstituted = eval $dehydrated;
+
+ is @reconstituted, @original,
+ "eval of .perl returns original for '$dehydrated'";
+ #?rakudo todo 'RT #63724'
+ ok $dehydrated ~~ / '(' .* ',' .* ')' /, 'List.perl has parens and comma';
+} |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzSeq.perl (the new List.perl) now properly produces (1, 2, 3) |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63724 (status was 'resolved')
Searchable as RT63724$
The text was updated successfully, but these errors were encountered: