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

9
LINES

< > BotCompany Repo | #1034959 // test_OnePathShifter

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

Transpiled version (7590L) is out of date.

1  
svoid test_OnePathShifter() {
2  
  // path going right
3  
  var path = new OnePathShifter(OnePathWithOrigin("4444"), true)!;
4  
  assertEqualsVerbose(str(OnePathWithOrigin(0, 1, "4444")), str(path));
5  
  
6  
  // up, then right (yields only one point)
7  
  path = new OnePathShifter(OnePathWithOrigin("24"), true)!;
8  
  assertEqualsVerbose(str(OnePathWithOrigin(1, 0, "")), str(path));
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034959
Snippet name: test_OnePathShifter
Eternal ID of this version: #1034959/2
Text MD5: 721dcb219e771cadd7b7f826dcab2b53
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-18 00:55:01
Source code size: 376 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 167 / 242
Version history: 1 change(s)
Referenced in: [show references]