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

5
LINES

< > BotCompany Repo | #1029212 // checkSuffixTreeSearch

JavaX fragment (include)

1  
svoid checkSuffixTreeSearch(SuffixTree tree, S pattern) {
2  
  L<Int> correct = indicesOf(tree.fullText, pattern);
3  
  L<Int> out = sorted(tree.indicesOf(pattern));
4  
  assertEquals(pattern, correct, out);
5  
}

Author comment

Began life as a copy of #1029208

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: #1029212
Snippet name: checkSuffixTreeSearch
Eternal ID of this version: #1029212/1
Text MD5: 4713684cc40ea035c21340ec5564f158
Author: stefan
Category: javax / text searching
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-25 13:55:32
Source code size: 204 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 233
Referenced in: [show references]