Transpiled version (5094L) is out of date.
1 | svoid test_restructure_syncLinkedList() { |
2 | LS orig = synchronizedList(litlinkedlist("a", "b")); |
3 | print(structure(orig)); |
4 | LS ll = cast restructure(orig); |
5 | assertEquals(orig.getClass(), ll.getClass()); |
6 | assertTrueVerbose(unwrapSynchronizedList(ll) instanceof LinkedList); |
7 | assertEqualsVerbose(orig, ll); |
8 | |
9 | // legacy format |
10 | L l2 = cast unstructure("syncLL[1, 2]"); |
11 | assertEquals(synchronizedList(litlinkedlist()).getClass(), l2.getClass()); |
12 | assertTrue(unwrapSynchronizedList(l2) instanceof LinkedList); |
13 | assertEquals(ll(1, 2), l2); |
14 | |
15 | } |
Began life as a copy of #1023894
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: | #1024001 |
Snippet name: | test_restructure_syncLinkedList (OK) |
Eternal ID of this version: | #1024001/6 |
Text MD5: | c1c3197ee8604f6db88360d62cbec314 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-21 04:35:37 |
Source code size: | 559 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 236 / 368 |
Version history: | 5 change(s) |
Referenced in: | [show references] |