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

14
LINES

< > BotCompany Repo | #1004043 // Test jfind with IndexedList

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

Libraryless. Click here for Pure Java version (1305L/9K/30K).

1  
!759
2  
3  
p {
4  
  IndexedList.debug = true;
5  
  IndexedList<S> tok = new IndexedList<S>(javaTok("hello world hello"));
6  
  assertEquals(1, jfind(tok, "hello"));
7  
  assertEquals(3, jfind(tok, "world"));
8  
  assertEquals(-1, jfind(tok, "bla"));
9  
  reTok(tok);
10  
  assertEquals(1, jfind(tok, "hello"));
11  
  assertEquals(3, jfind(tok, "world"));
12  
  assertEquals(-1, jfind(tok, "bla"));
13  
  print("ok");
14  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1004043
Snippet name: Test jfind with IndexedList
Eternal ID of this version: #1004043/1
Text MD5: d0909cb20892825e895fe1384807555d
Transpilation MD5: 7c584a1a0da0861a129ef79026906a00
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-04 17:05:52
Source code size: 392 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 447 / 513
Referenced in: [show references]