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

6
LINES

< > BotCompany Repo | #1028908 // testFunctionValueIC - call function, compare output and print

JavaX fragment (include)

// last element of inAndExpected is expected result
svoid mapLike testFunctionValueIC(O function, O... inAndExpected) {
  S expected = cast last(inAndExpected);
  O[] in = dropLast(inAndExpected);
  assertEqualsVerboseIC(renderFunctionCall(str(function), in), expected, (S) callF(function, in));
}

Author comment

Began life as a copy of #1025563

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: #1028908
Snippet name: testFunctionValueIC - call function, compare output and print
Eternal ID of this version: #1028908/1
Text MD5: ac2d10b467f4724a7b3966413c26d6df
Author: stefan
Category: javax / testing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-11 19:29:39
Source code size: 302 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 121 / 158
Referenced in: [show references]