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

7
LINES

< > BotCompany Repo | #1027217 // test_allSubRectsOfSizeIterator

JavaX fragment (include)

1  
svoid test_allSubRectsOfSizeIterator() {
2  
  Rect full = rect(1, 2, 5, 4);
3  
  assertEqualsVerbose(ll(full), asList(allSubRectsOfSizeIterator(5, 4, full)));
4  
  assertEqualsVerbose(ll(
5  
    rect(1, 2, 5, 3), rect(1, 3, 5, 3)
6  
  ), asList(allSubRectsOfSizeIterator(5, 3, full)));
7  
}

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: #1027217
Snippet name: test_allSubRectsOfSizeIterator
Eternal ID of this version: #1027217/3
Text MD5: dd414628b5dffebf704dd66f241f3a5b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-26 12:31:39
Source code size: 278 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 197 / 227
Version history: 2 change(s)
Referenced in: [show references]