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

15
LINES

< > BotCompany Repo | #1029101 // test_LCSingleSearcher_v1

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

Uses 11335K of libraries. Click here for Pure Java version (9366L/61K).

1  
svoid test_LCSingleSearcher_v1() {
2  
  Random random = repeatableRandomizer();
3  
  S text = randomABC(100, random);
4  
  print(+text);
5  
  repeat 10 {
6  
    S query = randomABC(5, random);
7  
    test_LCSingleSearcher_v1(text, query);
8  
  }
9  
}
10  
11  
svoid test_LCSingleSearcher_v1(S text, S query) {  
12  
  new LCSingleSearcher_v1 searcher;
13  
  searcher.text = text;
14  
  assertEqualsVerbose(query, indicesOf(text, query), searcher.search(query));
15  
}

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: #1029101
Snippet name: test_LCSingleSearcher_v1
Eternal ID of this version: #1029101/5
Text MD5: e4bc11a874328267b981d1edb9ab1a62
Transpilation MD5: ac074e92382415073a2811593548f5bf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-20 13:11:18
Source code size: 433 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 196 / 298
Version history: 4 change(s)
Referenced in: [show references]