Skip to content

Commit

Permalink
Add test for reducing a Seq with operator =>
Browse files Browse the repository at this point in the history
This closes RT #130906.
  • Loading branch information
smls committed Oct 6, 2017
1 parent 59398cd commit 9ea27ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S03-metaops/reduce.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 558;
plan 559;

=begin pod
Expand Down Expand Up @@ -148,6 +148,9 @@ L<"http://groups.google.de/group/perl.perl6.language/msg/bd9eb275d5da2eda">
is (try {$list.value.value}), 3, "[=>] works (3)";
}

# RT #130906
is-deeply ([=>] (1, 2).Seq), (1 => 2), "[=>] works on Seq";

{
my @array = <5 -3 7 0 1 -9>;
# according to http://irclog.perlgeek.de/perl6/2008-09-10#i_560910
Expand Down

0 comments on commit 9ea27ad

Please sign in to comment.