Skip to content

Commit

Permalink
[v6.d REVIEW] Appendicise .match: Nil test
Browse files Browse the repository at this point in the history
Orig: 0a67c4316
  • Loading branch information
zoffixznet committed Sep 15, 2018
1 parent 3b5fad4 commit 32c3c97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion APPENDICES/A02-some-day-maybe/multi-no-match.t
Expand Up @@ -7,7 +7,7 @@ use Test;
# Since there's yet no existing behaviour for some of such combinations,
# X::Multi::NoMatch is thrown. This APPENDIX test file is for such tests.

plan 9;
plan 10;

{ # RT #129773
throws-like { [].splice: 0, [] }, X::Multi::NoMatch,
Expand Down Expand Up @@ -36,3 +36,6 @@ dies-ok { 42.words: |<bunch of incorrect args> },
# https://github.com/rakudo/rakudo/commit/742573724c
dies-ok { 42.lines: |<bunch of incorrect args> },
'no infinite loop when given wrong args to Cool.lines';

throws-like { "".match: Nil }, X::Multi::NoMatch,
'.match with Nil matcher does not hang';
5 changes: 1 addition & 4 deletions S05-substitution/match.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 19;
plan 18;

# L<S05/Substitution/>

Expand Down Expand Up @@ -48,7 +48,4 @@ 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 32c3c97

Please sign in to comment.