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
Error with glibc backtrace dump when cmp used wrong #1094
Comments
From amoc.yn@gmail.comrev: 6c43f9 cmp works. <amoc> rakudo: my @list = 5,2,"9",True; say @list.sort: { <amoc> rakudo: Code cmp 4; <amoc> rakudo: my @list = 1,2,Code; say @list.sort: { I'm not sure it's rakudo bug. (it seems it's parrot bug) rakudo> my @list = 1,2,Code; say @list.sort: { |
From @bbkr[16:15] <bbkr> rakudo: my @list = 1,2,Code; say @list.sort: { |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrtests added in /home/ppabian/pugs/t/spec/S32-list/sort.t |
@bbkr - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S32-list/sort.t commit f9c6673e5b8c50bdc53a1defa548857d03a79a8c [t/spec] tests for RT #67010 Error with glibc backtrace dump when cmp used wrong Inline Patchdiff --git a/t/spec/S32-list/sort.t b/t/spec/S32-list/sort.t
index bebe619..2f82da3 100644
--- a/t/spec/S32-list/sort.t
+++ b/t/spec/S32-list/sort.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 28;
+plan 29;
# L<S32::Containers/"List"/"=item sort">
@@ -203,4 +203,11 @@ plan 28;
is ~(42,).sort: { 0 }, "42", "method form of sort should work on arrays";
}
+# RT #67010
+{
+ my @list = 1, 2, Code;
+ lives_ok { @list.sort: { $^a cmp $^b } },
+ 'sort by class name';
+}
+
# vim: ft=perl6 |
Migrated from rt.perl.org#67010 (status was 'resolved')
Searchable as RT67010$
The text was updated successfully, but these errors were encountered: