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

16
LINES

< > BotCompany Repo | #1013288 // Test compareIgnoreCase_lower (OK)

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

Download Jar. Transpiled version (899L) is out of date.

!7

p {
  check(0, "abc", "ABC");
  check(0, "abc", "ABC");
  check(1, "abd", "ABC");
  check(-1, "abb", "ABC");
  print("OK");
}

svoid check(int x, S a, S b) {
  if (compareIgnoreCase_lower(a, b) != x)
    fail(a + " / " + b);
  if (compareIgnoreCase_lower(b, a) != -x)
    fail(b + " / " + a);
}

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: #1013288
Snippet name: Test compareIgnoreCase_lower (OK)
Eternal ID of this version: #1013288/3
Text MD5: cfd470de3c2c70926e28e06a60c88e90
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-31 07:29:13
Source code size: 313 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 324 / 767
Version history: 2 change(s)
Referenced in: [show references]