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).

// params = input, output, input, output, ...
svoid lambdaMapLike testFunctionValues(IF1 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  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: 470 / 663
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1018447 - testFunctionValues_struct - call function, compare output and print structs
#1023083 - testFunctionValuesIC - call function, compare output and print
#1023865 - testFunctionValues_twoArgs - call two-argument function, compare output and print
#1025563 - testFunctionValue - call function, compare output and print
#1025657 - testFunctionValues_pairs - call function, compare output and print
#1034762 - TestFunctionValues