Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1024570 // Test restructure with loadableUtils.utils$Rect and ...$Pair (OK)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (4424L/23K).

!7

import static loadableUtils.utils.Pair;

cmodule TestRestructure > DynPrintLog {
  start-thread {
    Rect r = rect(1, 2, 3, 4);
    S s = structure(r);
    print(s);
    assertEqualsVerbose(r, unstructure(s));
    
    Pair p = pair(pair(1, 2)); // contains back-reference
    s = structure(p);
    print(s);
    Pair p2 = cast unstructure(s);
    assertEqualsVerbose(structure(p2), s);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024570
Snippet name: Test restructure with loadableUtils.utils$Rect and ...$Pair (OK)
Eternal ID of this version: #1024570/10
Text MD5: 0ed37548a0a6c548609c03c529c1c736
Transpilation MD5: d8ed4b0d6db00d1ae5eaec39a401c0ee
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-18 20:16:44
Source code size: 414 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 358
Version history: 9 change(s)
Referenced in: [show references]