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


< > BotCompany Repo | #1012687 // Test case-insensitive symbols (FIXED)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (2506L/17K).


unset flag SymbolAsString.
//set flag symbol_debug.

p {
  Symbol a = symbol("abc");
  Symbol b = symbol("ABC");
  Symbol c = symbol("def");
  assertEqualsVerbose("abc", str(a));
  assertEqualsVerbose("ABC", str(b));
  assertEqualsVerbose("def", str(c));
  assertEqualsVerbose(a, a);
  assertEqualsVerbose(a, b);
  assertNotEqualsVerbose(a, c);
  assertEqualsVerbose(a.hashCode(), b.hashCode());
  if (c.hashCode() == a.hashCode()) print("weird. fluke?"); else print("OK");

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: 493 / 1067
Version history: 8 change(s)
Referenced in: [show references]