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 (4582L/26K).

1  
// params = input, output, input, output, ...
2  
svoid lambdaMapLike testFunctionValues(IF1 function, O... params) {
3  
  for (int i = 0; i+1 < l(params); i += 2) {
4  
    O in = params[i], expected = params[i+1];
5  
    testFunctionValue(function, in, expected);
6  
  }
7  
}

Author comment

Began life as a copy of #1013575

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, elmgxqgtpvxh, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1018444
Snippet name: testFunctionValues - call function, compare output and print
Eternal ID of this version: #1018444/9
Text MD5: 933656980e8c78f7ba0161e42cff7660
Transpilation MD5: 7cbcc70aba56107cc44e75a565f31824
Author: stefan
Category: javax / testing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-26 17:59:18
Source code size: 263 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 471 / 665
Version history: 8 change(s)
Referenced in: [show references]