Transpiled version (5046L) is out of date.
1 | static Throwable assertFail(S msg default "", Runnable r) {
|
2 | try {
|
3 | r.run(); |
4 | } catch e {
|
5 | silentException(e); |
6 | ret e; |
7 | } |
8 | fail("No exception thrown" + (nempty(msg) ? " - " + msg : " by " + r));
|
9 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, ekrmjmnbrukm, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005129 |
| Snippet name: | assertFail - assert that a code fragment throws an exception (throwable) |
| Eternal ID of this version: | #1005129/4 |
| Text MD5: | c1eb87c6da143479080c6f8250f61109 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-04-27 14:10:13 |
| Source code size: | 217 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 904 / 1019 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |