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.

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

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: 56 / 92
Version history: 1 change(s)
Referenced in: [show references]