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

9
LINES

< > BotCompany Repo | #1027776 // test_metaTransformer_transformableAndList (OK)

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

Libraryless. Click here for Pure Java version (2695L/17K).

1  
svoid test_metaTransformer_transformableAndList() {
2  
  transformable record Rec(S yo) {}
3  
  
4  
  IF1 f = o -> o instanceof S ? upper(o/S) : null;
5  
  MetaTransformer tf = metaTransformer_transformableAndList();
6  
  
7  
  assertEqualsVerbose(ll("BLA", "BLU"), tf.transform(f, ll("bla", "blu")));
8  
  assertEqualsVerbose(ll(new Rec("TEST"), 5), tf.transform(f, ll(new Rec("test"), 5)));
9  
}

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: #1027776
Snippet name: test_metaTransformer_transformableAndList (OK)
Eternal ID of this version: #1027776/7
Text MD5: 04ea1b9cd1f80f5cf6dbba718b1e968f
Transpilation MD5: fd4bfe33a618069984f0c2ee141e4bc6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-11 13:00:55
Source code size: 381 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 345
Version history: 6 change(s)
Referenced in: [show references]