Skip to content

Commit

Permalink
[v6.d REVIEW] Move X::Multi::NoMatch-related tests to SAP
Browse files Browse the repository at this point in the history
Previously deemed unwanted in the spec, but now can go to
Spec APpendices.
  • Loading branch information
zoffixznet committed Jul 19, 2018
1 parent 16b69fe commit 7d9ca4f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions t/05-messages/03-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 24;
plan 21;

subtest '.map does not explode in optimizer' => {
plan 3;
Expand Down Expand Up @@ -59,12 +59,6 @@ subtest 'like/unlike failures give useful diagnostics' => {
'`unlike` says it wanted no match, not just "expected"';
}

# https://github.com/rakudo/rakudo/issues/1644
throws-like Lock.protect: %(), X::Multi::NoMatch,
'Lock.protect with wrong args gives sane error';
throws-like Lock::Async.protect: %(), X::Multi::NoMatch,
'Lock::Async.protect with wrong args gives sane error';

# https://github.com/rakudo/rakudo/issues/1699
throws-like {
with Proc::Async.new: :out, :!err, $*EXECUTABLE, '-e', '' {
Expand Down Expand Up @@ -155,7 +149,4 @@ is-run 'sub rt125181 returns Str returns Int {}',
throws-like { 42.categorize: * }, Exception, '.categorize(*) on Any throws';
}

throws-like { Proc::Async.new }, X::Multi::NoMatch,
'attempting to create Proc::Async with wrong arguments throws';

# vim: ft=perl6 expandtab sw=4

0 comments on commit 7d9ca4f

Please sign in to comment.