Warning: session_start(): open(/var/lib/php/sessions/sess_2gv4oso9grie6du9v3is6pasv6, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
testFunctionValues_twoArgs_flat - call two-argument function, compare output and print [1026547]

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

13
LINES

< > BotCompany Repo | #1026547 // testFunctionValues_twoArgs_flat - call two-argument function, compare output and print

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

Transpiled version (2225L) is out of date.

// params = input1, input2, output, input1, input2, output, ...
svoid mapLike testFunctionValues_twoArgs_flat(O function, O... params) {
  for (int i = 0; i+2 < l(params); i += 3) {
    O a = params[i], b = params[i+1];
    O expected = params[i+2];
    print(function + "(" + a + ", " + b + "), expecting " + expected);
    assertEqualsVerbose(expected, callFWithVarArgs(function, a, b));
  }
}

svoid testFunctionValues_twoArgs_flat(IF2 function, O... params) {
  testFunctionValues_twoArgs_flat((O) function, params);
}

Author comment

Began life as a copy of #1023865

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026547
Snippet name: testFunctionValues_twoArgs_flat - call two-argument function, compare output and print
Eternal ID of this version: #1026547/5
Text MD5: 30bd13f3d8c7be22471b7e3a4772039d
Author: stefan
Category: javax / testing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-17 14:25:28
Source code size: 534 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 751 / 945
Version history: 4 change(s)
Referenced in: [show references]