Skip to content

Commit

Permalink
Test .sort doesn't crash with &lc
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 21, 2018
1 parent 0faa97a commit d35c12e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S32-list/sort.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 36;
plan 37;

# L<S32::Containers/"List"/"=item sort">

Expand Down Expand Up @@ -248,4 +248,7 @@ subtest 'degenerate cases' => {
is-deeply (2, 1).sort(-> $, $ {-1}), (2, 1).Seq, '2-item, 2-arity (3)';
}

# https://github.com/rakudo/rakudo/issues/1739
is-deeply <a c b>.sort(&lc), <a b c>.Seq, 'no crashes when using &lc in .sort';

# vim: ft=perl6

0 comments on commit d35c12e

Please sign in to comment.