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.

Moved from: rakudo/rakudo@7d9ca4fa0a
  • Loading branch information
zoffixznet committed Jul 19, 2018
1 parent 4bce18d commit dc7b5ed
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion APPENDICES/A02-some-day-maybe/multi-no-match.t
Expand Up @@ -7,11 +7,20 @@ 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 2;
plan 5;

{ # RT #129773
throws-like { [].splice: 0, [] }, X::Multi::NoMatch,
'.splice(offset, array) throws';
throws-like { [].splice: 0e0, 0 }, X::Multi::NoMatch,
'.splice(wrong type offset...) throws';
}


# 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';
throws-like { Proc::Async.new }, X::Multi::NoMatch,
'attempting to create Proc::Async with wrong arguments throws';

0 comments on commit dc7b5ed

Please sign in to comment.