1 | // params = input, output, input, output, ... |
2 | svoid mapLike testFunctionValues_struct(S function, O... params) { |
3 | for (int i = 0; i+1 < l(params); i += 2) { |
4 | O in = params[i], expected = params[i+1]; |
5 | print(function + "(" + struct(in) + ")"); |
6 | assertEqualsVerbose_struct(expected, callF(function, in)); |
7 | } |
8 | } |
Began life as a copy of #1018444
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018447 |
Snippet name: | testFunctionValues_struct - call function, compare output and print structs |
Eternal ID of this version: | #1018447/3 |
Text MD5: | e7a3161fa0ef98cdd1afe2ee06cf4d5f |
Author: | stefan |
Category: | javax / testing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-07 18:23:58 |
Source code size: | 325 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 311 / 371 |
Version history: | 2 change(s) |
Referenced in: | [show references] |