Libraryless. Click here for Pure Java version (10154L/59K).
scope test_structure_enum enum #Enum { a, b, c } svoid test_structure_enum() { S s = structure(Enum.a); assertEqualsVerbose("enum " + shortClassName(Enum) + " " + Enum.a.ordinal(), s); assertSameVerbose(Enum.a, unstruct(s)); s = structure(Enum.b); assertEqualsVerbose("enum " + shortClassName(Enum) + " " + Enum.b.ordinal(), s); assertSameVerbose(Enum.b, unstruct(s)); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034647 |
| Snippet name: | test_structure_enum |
| Eternal ID of this version: | #1034647/4 |
| Text MD5: | c79b2c99f75be6bfa4d3898bb20ef27c |
| Transpilation MD5: | 808e5c583ec9b45ce4e1840a8d81efb5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-28 18:41:19 |
| Source code size: | 399 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 468 / 600 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |