Transpiled version (37277L) is out of date.
1 | !include once #1034831 // Gazelle 22 Function Include for Testing |
2 | |
3 | svoid test_leftArrowScript_scriptError() {
|
4 | // Assert that an exception thrown inside LAScript contains a ScriptError instance |
5 | Throwable error = cast leftArrow("getException < Runnable fail");
|
6 | var scriptError = innerExceptionOfType(GazelleV_LeftArrowScript.ScriptError.class, error); |
7 | assertNotNullVerbose(scriptError); |
8 | |
9 | // Assert we can quickFail and it's NOT going to be wrapped in anything |
10 | var e = getException(r { leftArrow("quickFail") });
|
11 | printStackTrace(e); |
12 | assertInstanceOfVerbose(e, QuickException); |
13 | } |
Began life as a copy of #1035656
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036422 |
| Snippet name: | test_leftArrowScript_scriptError |
| Eternal ID of this version: | #1036422/7 |
| Text MD5: | 1816645826b60db88450baf20d185a7a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2024-10-04 23:28:00 |
| Source code size: | 605 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 999 / 1181 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |