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

7
LINES

< > BotCompany Repo | #1033113 // test_codeTokenIndex

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4704L/27K).

1  
svoid test_codeTokenIndex() {
2  
  LS tok = javaTok("hello world hello");
3  
  MultiMap<S, Int> mm = codeTokenIndex(tok);
4  
  assertEqualsVerbose(toMap(mm), litmap(
5  
    "hello" := ll(1, 5),
6  
    "world" := ll(3)));
7  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033113
Snippet name: test_codeTokenIndex
Eternal ID of this version: #1033113/5
Text MD5: 755712932cc40cecbe52a46183df13fa
Transpilation MD5: 9ec3e1c9bf578b841a2883447218adb8
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-15 15:03:19
Source code size: 213 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 141 / 221
Version history: 4 change(s)
Referenced in: [show references]