Skip to content

Commit

Permalink
Add tests for RT #112288
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Jan 1, 2015
1 parent 61919cf commit f6f6e0b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S03-sequence/misc.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 27;
plan 29;


# L<S03/List infix precedence/constraints implied by the signature of the function>
Expand Down Expand Up @@ -122,4 +122,12 @@ is (1, { $^n*2 + 1 } ... 31, *+5 ... { $^n**2 > 2000 }, 'a', *~'z' ... { $_.char
throws_like { 1, 2, 5 ... 10 }, X::Sequence::Deduction, from => '1,2,5'
}

# RT #112288
{
throws_like { (1, 2, 6 ... *)[5] }, X::Sequence::Deduction, from => '1,2,6',
'non-deducible sequence ending in * throws X::Sequence::Deduction (1)';
throws_like { ~(1, 2, 6 ... *)[5] }, X::Sequence::Deduction, from => '1,2,6',
'non-deducible sequence ending in * throws X::Sequence::Deduction (2)';
}

# vim: ft=perl6

0 comments on commit f6f6e0b

Please sign in to comment.