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

5
LINES

< > BotCompany Repo | #1025563 // testFunctionValue - call function, compare output and print

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

Libraryless. Click here for Pure Java version (5064L/28K).

// TODO: make work again for IF2 etc
static <A, B> void lambdaMapLike testFunctionValue(IF1<A, B> function, A in, B expected) {
  S what = print(renderFunctionCall(str(function), in));
  assertEqualsVerbose(what, expected, function.get(in));
}

Author comment

Began life as a copy of #1018444

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: #1025563
Snippet name: testFunctionValue - call function, compare output and print
Eternal ID of this version: #1025563/16
Text MD5: 17ffc5e4b3fbe8fd4ffa1ff5e90466e5
Transpilation MD5: 73f0eed595061ed474dea85924654419
Author: stefan
Category: javax / testing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-29 10:12:54
Source code size: 247 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 212 / 329
Version history: 15 change(s)
Referenced in: [show references]