Libraryless. Click here for Pure Java version (9882L/55K).
svoid test_StructureStringIndenter() { S expected = unindentMLS([[ X( i=[C(name="something short")], j=array{ "something longer than 40 chars?", e, f, g, 123 }, o=u ) ]]; var indenter = new StructureStringIndenter().verbose(true); S s = [[X(i=[C(name="something short")], j=array{"something longer than 40 chars?", e, f, g, 123}, o=u)]]; assertEquals(rtrim(expected), rtrim(print(indenter.get(s)))); s = expected = [[intarray{1, 2}]]; assertEquals(rtrim(expected), rtrim(print(indenter.get(s)))); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035338 |
Snippet name: | test_StructureStringIndenter (OK) |
Eternal ID of this version: | #1035338/11 |
Text MD5: | cd563b283274317928d9e7ba2bfbb2b8 |
Transpilation MD5: | 22ab59fc9df77efa0d006b589558c70c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-21 06:14:15 |
Source code size: | 611 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 140 / 233 |
Version history: | 10 change(s) |
Referenced in: | [show references] |