Libraryless. Click here for Pure Java version (14273L/87K).
1 | asclass DynTestModule > DynPrintLog { |
2 | transient bool running; |
3 | bool ok; |
4 | PersistableThrowable error; |
5 | |
6 | // override me! |
7 | void test {} |
8 | |
9 | start-thread { |
10 | running = true; |
11 | try { |
12 | test(); |
13 | setFields(ok := true, error := null); |
14 | printWithNewLineBefore("Successss"); |
15 | applause(); |
16 | } catch print e { |
17 | infoBox(exceptionToStringShort(e)); |
18 | setFields(ok := false, error := toPersistableThrowable(e)); |
19 | } finally { |
20 | running = false; |
21 | } |
22 | } |
23 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031079 |
Snippet name: | DynTestModule - module running a single test |
Eternal ID of this version: | #1031079/5 |
Text MD5: | 223c24091438f09350cb0cc64963f398 |
Transpilation MD5: | 30ce96a995a1ab481bec90546168e047 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-07-16 06:17:22 |
Source code size: | 512 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 199 / 424 |
Version history: | 4 change(s) |
Referenced in: | [show references] |