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

12
LINES

< > BotCompany Repo | #1026402 // test_fullPhraseCache_tokenRanges

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

Libraryless. Click here for Pure Java version (3038L/19K).

1  
svoid test_fullPhraseCache_tokenRanges() {
2  
  LS tok = javaTokNPunctuation("don't be evil");
3  
  
4  
  assertEqualsVerbose(ll("be evil"),
5  
    getJoinedTokenRangesWithoutN(tok, fullPhraseCache_tokenRanges(
6  
      makeFullPhraseCache("be evil", "evil"), tok)));
7  
      
8  
  tok = javaTokNPunctuation("you are evil");
9  
  assertEqualsVerbose(ll("evil"),
10  
    getJoinedTokenRangesWithoutN(tok, fullPhraseCache_tokenRanges(
11  
      makeFullPhraseCache("be evil", "evil"), tok)));
12  
}

Author comment

Began life as a copy of #1022311

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026402
Snippet name: test_fullPhraseCache_tokenRanges
Eternal ID of this version: #1026402/5
Text MD5: cada34a041af87551a32626a44179ac4
Transpilation MD5: a9a7f8ee9c06802c9a941e982b8caf3b
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-02 14:06:57
Source code size: 472 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 208 / 306
Version history: 4 change(s)
Referenced in: [show references]