Libraryless. Click here for Pure Java version (2549L/16K).
svoid test_WordIndex() { new WordIndex<S> idx; idx.add("hello world"); idx.add("yo WOrLD"); assertEqualsVerbose(ll("hello world"), idx.get("hello")); assertEqualsVerbose(ll("hello world", "yo WOrLD"), idx.get("world")); assertEqualsVerbose(ll(), idx.get("something else")); idx.remove("yo WOrLD"); assertEqualsVerbose(ll("hello world"), idx.get("hello")); assertEqualsVerbose(ll("hello world"), idx.get("world")); assertEqualsVerbose(ll(), idx.get("something else")); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024243 |
Snippet name: | test_WordIndex (OK) |
Eternal ID of this version: | #1024243/3 |
Text MD5: | 4a7f82034e00ee6cb0cfc013128b45a4 |
Transpilation MD5: | 29618172a6520366492a3e76f2ec7655 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-28 18:21:34 |
Source code size: | 500 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 221 / 335 |
Version history: | 2 change(s) |
Referenced in: | [show references] |