Libraryless. Click here for Pure Java version (4704L/27K).
svoid test_codeTokenIndex() { LS tok = javaTok("hello world hello"); MultiMap<S, Int> mm = codeTokenIndex(tok); assertEqualsVerbose(toMap(mm), litmap( "hello" := ll(1, 5), "world" := ll(3))); }
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: | 346 / 479 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |