Download Jar. Libraryless. Click here for Pure Java version (1896L/13K).
1 | !7 |
2 | |
3 | p { |
4 | for n to 11: |
5 | assertEquals(-1, indexOfSearchingFromMiddleIC(rep(n, ""), "bla")); |
6 | |
7 | for n to 11: |
8 | for i to n: { |
9 | L<S> l = setAndReturnList(rep(n, ""), i, "BLA"); |
10 | printStruct(l); |
11 | assertEquals(i, indexOfSearchingFromMiddleIC(l, "bla")); |
12 | } |
13 | |
14 | assertEquals(1, indexOfSearchingFromMiddleIC(rep(3, "a"), "a")); |
15 | assertBetween(1, 2, indexOfSearchingFromMiddleIC(rep(4, "a"), "a")); |
16 | assertEquals(2, indexOfSearchingFromMiddleIC(rep(5, "a"), "a")); |
17 | assertBetween(2, 3, indexOfSearchingFromMiddleIC(rep(6, "a"), "a")); |
18 | |
19 | print("OK"); |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1013109 |
Snippet name: | Test indexOfSearchingFromMiddleIC (OK) |
Eternal ID of this version: | #1013109/8 |
Text MD5: | eb72772791b9b36da6d6bef4f5e04d12 |
Transpilation MD5: | ee14b2e65c9f1b99237b0137fddf83e9 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-25 21:54:57 |
Source code size: | 597 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 409 / 1084 |
Version history: | 7 change(s) |
Referenced in: | [show references] |