Skip to content

Commit

Permalink
Add test for R#2057
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 26, 2018
1 parent 8995cd7 commit ceb0380
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S05-match/make.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 10;
plan 11;

# should be: L<S05/Bracket rationalization/"An B<explicit> reduction using the C<make> function">
# L<S05/Bracket rationalization/reduction using the>
Expand Down Expand Up @@ -38,4 +38,10 @@ is $/.ast, 'bar', '$/.ast';
cmp-ok $/.ast, '===', FooBar, 'can get made type objects from .ast (2)';
}

# R#2057
{
lives-ok { "" ~~ /{ (make 0 for 0) }/ && .say for ^100 },
'check that we did not regress';
}

# vim: ft=perl6

0 comments on commit ceb0380

Please sign in to comment.