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

Any.reverse should flatten captures #2177

Closed
p6rt opened this issue Sep 17, 2010 · 6 comments
Closed

Any.reverse should flatten captures #2177

p6rt opened this issue Sep 17, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Sep 17, 2010

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

Searchable as RT77914$

@p6rt
Copy link
Author

p6rt commented Sep 17, 2010

From @moritz

50 < moritz_> rakudo​: say ~(<a b>, <c d>).reverse
21​:50 <+p6eval> rakudo da7c7f​: OUTPUT«c d a b␤»

should be 'd c b a', see
http://irclog.perlgeek.de/perl6/2010-09-17#i_2837846

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Sep 18, 2010

From @pmichaud

Now fixed in 9e46fe0 -- assigning to moritz++ for spectest verification.

Pm

@p6rt
Copy link
Author

p6rt commented Sep 18, 2010

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

@p6rt
Copy link
Author

p6rt commented Sep 18, 2010

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

@p6rt p6rt closed this as completed Sep 18, 2010
@p6rt
Copy link
Author

p6rt commented Sep 18, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in S32-list/reverse.t

commit 280ebdecb2c27f6e27a9c74140c91f461b95f10e
Author​: Moritz Lenz <moritz@​faui2k3.org>
Date​: Sat Sep 18 19​:34​:58 2010 +0200

  test for RT #​77914, .reverse shoudl flatten parcels
 
  Also removes some non-informative Pod

Inline Patch
diff --git a/S32-list/reverse.t b/S32-list/reverse.t
index 02be857..783916b 100644
--- a/S32-list/reverse.t
+++ b/S32-list/reverse.t
@@ -3,13 +3,7 @@ use Test;
 
 # L<S32::Containers/List/"=item reverse">
 
-=begin pod
-
-Basic test for the reverse() builtin with a string (Str).
-
-=end pod
-
-plan 21;
+plan 22;
 
 
 
@@ -104,4 +98,9 @@ is(@a, @e, "list was reversed");
     is(@a[1], "foo", 'in place reversal works');
 }
 
+# RT #77914
+{
+    is (<a b>, <c d>).reverse.join, 'dcba', '.reverse flattens parcels';
+}
+
 # vim: ft=perl6

@lizmat
Copy link
Contributor

lizmat commented Jan 12, 2020

After the Great List Refactor, flattening should NOT take place. Raku/roast@20f2cd0fe8 changes test accordingly.

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

2 participants