Download Jar. Libraryless. Click here for Pure Java version (2537L/18K).
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 | } |
Began life as a copy of #1012687
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: | #1012711 |
| Snippet name: | Test case-insensitive symbols (FIXED!) |
| Eternal ID of this version: | #1012711/2 |
| Text MD5: | 80a72f6f92558bcf9df2f94dc0cc3ece |
| Transpilation MD5: | 36bdf2bb230075b4e9578cd207518395 |
| 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:56:10 |
| Source code size: | 529 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 698 / 1628 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |