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

7
LINES

< > BotCompany Repo | #1018444 - testFunctionValues - call function, compare output and print

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

Libraryless. Click here for Pure Java version (2151L/14K).

// params = input, output, input, output, ...
svoid mapLike testFunctionValues(O function, O... params) {
  for (int i = 0; i+1 < l(params); i += 2) {
    O in = params[i], expected = params[i+1];
    testFunctionValue(function, in, expected);
  }
}

Author comment

Began life as a copy of #1013575

download  show line numbers  debug dex   

Travelled to 10 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1018444
Snippet name: testFunctionValues - call function, compare output and print
Eternal ID of this version: #1018444/6
Text MD5: 9f2e2b7cea711e20c2587895bebce87a
Transpilation MD5: 756907ab243f948227fabafc5c54f681
Author: stefan
Category: javax / testing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-03 17:10:50
Source code size: 255 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 123 / 163
Version history: 5 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1018444 & http://1018444.tinybrain.de