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

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

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: 291 / 431
Version history: 15 change(s)
Referenced in: [show references]