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

8
LINES

< > BotCompany Repo | #1006610 // testIconFinder

JavaX fragment (include)

1  
// finder: RGBImage -> L<Rect>
2  
static void testIconFinder(O finder, RGBImage inputImage1, RGBImage inputImage2, Pt positionInImage1, Pt positionInImage2) {
3  
  L<Rect> l1 = (L) callF(finder, inputImage1);
4  
  L<Rect> l2 = (L) callF(finder, inputImage2);
5  
  assertTrue(containsPoint(l1, positionInImage1) && !containsPoint(l2, positionInImage2));
6  
  assertTrue(containsPoint(l2, positionInImage2) && !containsPoint(l2, positionInImage1));
7  
  print("ok");
8  
}

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: #1006610
Snippet name: testIconFinder
Eternal ID of this version: #1006610/1
Text MD5: 72761b1bde26778b0766062b0499b4c1
Author: stefan
Category: javax / ocr / meta
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-01-20 20:45:35
Source code size: 455 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 499 / 501
Referenced in: [show references]