Libraryless. Click here for Pure Java version (10154L/59K).
1 | scope test_structure_enum |
2 | |
3 | enum #Enum { a, b, c } |
4 | |
5 | svoid test_structure_enum() { |
6 | S s = structure(Enum.a); |
7 | assertEqualsVerbose("enum " + shortClassName(Enum) + " " + Enum.a.ordinal(), s); |
8 | assertSameVerbose(Enum.a, unstruct(s)); |
9 | |
10 | s = structure(Enum.b); |
11 | assertEqualsVerbose("enum " + shortClassName(Enum) + " " + Enum.b.ordinal(), s); |
12 | assertSameVerbose(Enum.b, unstruct(s)); |
13 | } |
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: | 194 / 266 |
Version history: | 3 change(s) |
Referenced in: | [show references] |