Skip to content

Commit 4eede1c

Browse files
committed
Test .subst() with no args does not infiniloop
Test for fix 7c3a3841eb IRC: https://irclog.perlgeek.de/perl6-dev/2016-11-26#i_13630780
1 parent 7c3a384 commit 4eede1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S05-substitution/subst.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use lib 't/spec/packages';
33
use Test;
44
use Test::Util;
55

6-
plan 183;
6+
plan 184;
77

88
# L<S05/Substitution/>
99

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

629+
# https://irclog.perlgeek.de/perl6-dev/2016-11-26#i_13630780
630+
throws-like { "".subst }, X::Multi::NoMatch, '.subst with no arguments throws';
631+
629632
# vim: ft=perl6

0 commit comments

Comments
 (0)