Libraryless. Click here for Pure Java version (1056L/7K/25K).
1 | !752 |
2 | |
3 | p {
|
4 | ImmL<S> a = new ImmL(ll("hello", "world"));
|
5 | ImmL<S> b = new ImmL(ll("hello", "world"));
|
6 | ImmL<S> c = new ImmL(ll("world", "hello"));
|
7 | print("md5/hash: " + a.md5() + "/" + a.hashCode());
|
8 | print("md5/hash: " + b.md5() + "/" + b.hashCode());
|
9 | print("md5/hash: " + c.md5() + "/" + c.hashCode());
|
10 | assertEquals(a, b); |
11 | assertFalse(eq(a, c)); |
12 | assertTrue(a.hashCode() == b.hashCode()); |
13 | assertFalse(a.hashCode() == c.hashCode()); |
14 | assertEquals("hello", a.get(0));
|
15 | assertEquals(2, l(a)); |
16 | print("ok");
|
17 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004214 |
| Snippet name: | Test ImmL (immutable list) |
| Eternal ID of this version: | #1004214/1 |
| Text MD5: | 65951fa91e58203a54212a2db4e6445c |
| Transpilation MD5: | dd617b107b8b0d64f49ae98aad29f111 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-08-10 17:00:04 |
| Source code size: | 538 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 743 / 863 |
| Referenced in: | [show references] |