Libraryless. Click here for Pure Java version (2549L/16K).
1 | svoid test_WordIndex() {
|
2 | new WordIndex<S> idx; |
3 | idx.add("hello world");
|
4 | idx.add("yo WOrLD");
|
5 | assertEqualsVerbose(ll("hello world"), idx.get("hello"));
|
6 | assertEqualsVerbose(ll("hello world", "yo WOrLD"), idx.get("world"));
|
7 | assertEqualsVerbose(ll(), idx.get("something else"));
|
8 | idx.remove("yo WOrLD");
|
9 | assertEqualsVerbose(ll("hello world"), idx.get("hello"));
|
10 | assertEqualsVerbose(ll("hello world"), idx.get("world"));
|
11 | assertEqualsVerbose(ll(), idx.get("something else"));
|
12 | } |
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: | 432 / 605 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |