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

20
LINES

< > BotCompany Repo | #1030983 // Test RealmCopy [works but needs more tests]

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

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

1  
!7
2  
3  
set flag RealmCopy_debug.
4  
5  
cprint {
6  
  transient O realm1;
7  
  
8  
  start-thread {
9  
    realm1 = hotwire(#1030982);
10  
    O pair = nuInRealm(realm1, "main$Pair", 1, 2);
11  
    print(+pair);
12  
    assertNotSame(Pair, pair.getClass());
13  
    
14  
    new RealmCopy rc;
15  
    Pair pair2;
16  
    //pair2 = (Pair) rc.copy(pair);
17  
    pair2 = (Pair) vStackComputeWithPrintStruct(rc.copyComputation(pair));
18  
    assertEqualsVerbose(pair(1, 2), pair2);
19  
  }
20  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030983
Snippet name: Test RealmCopy [works but needs more tests]
Eternal ID of this version: #1030983/6
Text MD5: c0432b6a1b6a8d76260b05baf9c5f9f1
Transpilation MD5: b21649a6cac79fd80c82deb4a97fd272
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-18 14:58:34
Source code size: 447 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 105 / 229
Version history: 5 change(s)
Referenced in: [show references]