Uses 11335K of libraries. Click here for Pure Java version (9366L/61K).
svoid test_LCSingleSearcher_v1() { Random random = repeatableRandomizer(); S text = randomABC(100, random); print(+text); repeat 10 { S query = randomABC(5, random); test_LCSingleSearcher_v1(text, query); } } svoid test_LCSingleSearcher_v1(S text, S query) { new LCSingleSearcher_v1 searcher; searcher.text = text; assertEqualsVerbose(query, indicesOf(text, query), searcher.search(query)); }
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: | 197 / 300 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1029104 - test_LCSingleSearcher_v1_systematically |