static S testStructureFunction(O input) { ret testStructureFunction(input, true); } static S testStructureFunction(O input, bool compare) { S s; time { s = structure(input); } print("struct", shorten(s, 500)); O o; print("unstructuring " + l(s) + " chars"); time { o = unstructure(s); } S x = structure(o); assertEquals(s, x); if (compare) assertEqualsVerbose(input, o); ret x; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003319 |
Snippet name: | testStructureFunction - tests if structure stays the same and (by default) also if object is equal restructured object |
Eternal ID of this version: | #1003319/4 |
Text MD5: | 7664747a00f45aab478a77c699363bbd |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-21 05:25:29 |
Source code size: | 438 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 636 / 629 |
Version history: | 3 change(s) |
Referenced in: | [show references] |