Libraryless. Click here for Pure Java version (4680L/30K).
1 | svoid test_positionalTokenIndex2_filter() { |
2 | PositionalTokenIndex2 idx = positionalTokenIndex2_wordTok(tlft([[ |
3 | you are here |
4 | what is this |
5 | hello world |
6 | hello you |
7 | hello my friend |
8 | ]])); |
9 | printStruct(idx); |
10 | assertEqualsVerbose(ll("you are here"), |
11 | positionalTokenIndex2_filter_wordTok(idx, "you * *")); |
12 | assertEqualsVerbose(ll("hello world"), |
13 | positionalTokenIndex2_filter_wordTok(idx, "* world")); |
14 | assertEqualsVerbose(ll("hello world", "hello you"), |
15 | positionalTokenIndex2_filter_wordTok(idx, "hello *")); |
16 | assertEqualsVerbose(ll("what is this"), |
17 | positionalTokenIndex2_filter_wordTok(idx, "* is this")); |
18 | assertEqualsVerbose(ll(), |
19 | positionalTokenIndex2_filter_wordTok(idx, "* * is")); |
20 | } |
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: | #1025696 |
Snippet name: | test_positionalTokenIndex2_filter [OK] |
Eternal ID of this version: | #1025696/7 |
Text MD5: | 30cacf0e1f065b14b155ec79498df5b7 |
Transpilation MD5: | dab4c1a01442047ca0c9131d4be73be4 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-13 23:41:55 |
Source code size: | 748 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 261 / 373 |
Version history: | 6 change(s) |
Referenced in: | [show references] |