Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v6.d REVIEW] Add multi-no-match.t APPENDIX
The tests in this file ensure certain constructs die with a decent error instead of hanging or crashing by spilling compiler guts. 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.
- Loading branch information
1 parent
ab0a933
commit 4bce18d
Showing
2 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use v6; | ||
use Test; | ||
|
||
# The tests in this file ensure certain constructs die with a decent error | ||
# instead of hanging or crashing by spilling compiler guts. | ||
# | ||
# 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; | ||
|
||
{ # 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'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters