Skip to content

Commit

Permalink
Test .subst() with no args does not infiniloop
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Nov 26, 2016
1 parent 7c3a384 commit 4eede1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S05-substitution/subst.t
Expand Up @@ -3,7 +3,7 @@ use lib 't/spec/packages';
use Test;
use Test::Util;

plan 183;
plan 184;

# L<S05/Substitution/>

Expand Down Expand Up @@ -626,4 +626,7 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
X::Str::Match::x, 'giving .subst-mutate invalid args throws';
}

# https://irclog.perlgeek.de/perl6-dev/2016-11-26#i_13630780
throws-like { "".subst }, X::Multi::NoMatch, '.subst with no arguments throws';

# vim: ft=perl6

0 comments on commit 4eede1c

Please sign in to comment.