Skip to content

Commit

Permalink
Test Str.match: Nil does not hang
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 24, 2017
1 parent 172e5df commit 0a67c43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S05-substitution/match.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 18;
plan 19;

# L<S05/Substitution/>

Expand Down Expand Up @@ -48,4 +48,7 @@ is $m[0], 'oo', 'match object indexes as an array';
(for 1..10 { '' x $_ ~ 'Z' }), 'can .subst: /:i T/, "Z"';
}

throws-like { "".match: Nil }, X::Multi::NoMatch,
'.match with Nil matcher does not hang';

# vim: ft=perl6

0 comments on commit 0a67c43

Please sign in to comment.