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

13
LINES

< > BotCompany Repo | #1012947 // Test compareIgnoreCase_keepSeparate (OK)

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

Download Jar. Libraryless. Click here for Pure Java version (896L/6K).

1  
!7
2  
3  
p {
4  
  assertSignEquals(1, compareIgnoreCase_keepSeparate("a", "A"));
5  
  assertSignEquals(-1, compareIgnoreCase_keepSeparate("A", "a"));
6  
  assertSignEquals(1, compareIgnoreCase_keepSeparate("b", "A"));
7  
  assertSignEquals(1, compareIgnoreCase_keepSeparate("B", "a"));
8  
  assertSignEquals(0, compareIgnoreCase_keepSeparate("A", "A"));
9  
  assertSignEquals(-1, compareIgnoreCase_keepSeparate(null, "A"));
10  
  assertSignEquals(1, compareIgnoreCase_keepSeparate("A", null));
11  
  assertSignEquals(0, compareIgnoreCase_keepSeparate(null, null));
12  
  print("OK");
13  
}

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: #1012947
Snippet name: Test compareIgnoreCase_keepSeparate (OK)
Eternal ID of this version: #1012947/5
Text MD5: f94cc4a406e47c73cc81d04d383700bc
Transpilation MD5: e4013e0562d37cb2fac7e6b6f515ea79
Author: stefan
Category:
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-18 17:10:14
Source code size: 562 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 508 / 1093
Version history: 4 change(s)
Referenced in: [show references]