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

20
LINES

< > BotCompany Repo | #1025696 // test_positionalTokenIndex2_filter [OK]

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

Libraryless. Click here for Pure Java version (4680L/30K).

svoid test_positionalTokenIndex2_filter() {
  PositionalTokenIndex2 idx = positionalTokenIndex2_wordTok(tlft([[
    you are here
    what is this
    hello world
    hello you
    hello my friend
  ]]));
  printStruct(idx);
  assertEqualsVerbose(ll("you are here"), 
    positionalTokenIndex2_filter_wordTok(idx, "you * *"));
  assertEqualsVerbose(ll("hello world"),
    positionalTokenIndex2_filter_wordTok(idx, "* world"));
  assertEqualsVerbose(ll("hello world", "hello you"),
    positionalTokenIndex2_filter_wordTok(idx, "hello *"));
  assertEqualsVerbose(ll("what is this"),
    positionalTokenIndex2_filter_wordTok(idx, "* is this"));
  assertEqualsVerbose(ll(),
    positionalTokenIndex2_filter_wordTok(idx, "* * is"));
}

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: 157 / 253
Version history: 6 change(s)
Referenced in: [show references]