Skip to content

Commit

Permalink
Add tests for R#2233
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Aug 29, 2018
1 parent fc490c2 commit 8b38c7d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S03-smartmatch/array-array.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 69;
plan 73;

#L<S03/Smart matching/arrays are comparable>
{
Expand Down Expand Up @@ -100,4 +100,13 @@ subtest '~~ with lazy iterables never throws' => {
is-deeply $iter ~~ $iter, True, 'lazy ~~ lazy is True when same object';
}

# R#2233
{
my @list = 1,2,3;
is-deeply @list.Seq ~~ @list.Seq, True, 'do Seqs smartmatch ok';
is-deeply @list.Seq.lazy ~~ @list.Seq, False, 'left Seq lazy';
is-deeply @list.Seq ~~ @list.Seq.lazy, False, 'right Seq lazy';
is-deeply @list.Seq.lazy ~~ @list.Seq.lazy, False, 'both Seqs lazy';
}

# vim: ft=perl6

0 comments on commit 8b38c7d

Please sign in to comment.