Download Jar. Libraryless. Click here for Pure Java version (2506L/17K).
1 | !7 |
2 | |
3 | unset flag SymbolAsString. |
4 | //set flag symbol_debug. |
5 | |
6 | p { |
7 | Symbol a = symbol("abc"); |
8 | gc(); |
9 | Symbol b = symbol("ABC"); |
10 | Symbol c = symbol("def"); |
11 | assertEqualsVerbose("abc", str(a)); |
12 | assertEqualsVerbose("ABC", str(b)); |
13 | assertEqualsVerbose("def", str(c)); |
14 | assertEqualsVerbose(a, a); |
15 | assertEqualsVerbose(a, b); |
16 | assertNotEqualsVerbose(a, c); |
17 | assertEqualsVerbose(a.hashCode(), b.hashCode()); |
18 | print(c.hashCode()); |
19 | if (c.hashCode() == a.hashCode()) print("weird. fluke?"); else print("OK"); |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012687 |
Snippet name: | Test case-insensitive symbols (FIXED) |
Eternal ID of this version: | #1012687/9 |
Text MD5: | 80a72f6f92558bcf9df2f94dc0cc3ece |
Transpilation MD5: | e5f7eb40207bfefadcd43ad5f437455c |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-10 21:15:05 |
Source code size: | 529 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 610 / 1314 |
Version history: | 8 change(s) |
Referenced in: | [show references] |