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

12
LINES

< > BotCompany Repo | #1022194 // Test optPar with map (and without)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (6160L/43K).

!7

p-exp {
  assertEqualsVerbose(3, optPar(litparams(a := 3), 'a));
  assertEqualsVerbose(3, optPar(litmapparams(a := 3), 'a));
  assertEqualsVerbose(3, optPar(paramsPlus(litmapparams(a := 3), b := 4), 'a));
  assertEqualsVerbose(4, optPar(paramsPlus(litmapparams(a := 3), b := 4), 'b));
  assertEqualsVerbose(3, optPar(paramsPlus(litparams(a := 3), b := 4), 'a));
  assertEqualsVerbose(4, optPar(paramsPlus(litparams(a := 3), b := 4), 'b));
  assertEqualsVerbose(4, l(paramsPlus(litparams(a := 3), b := 4));
  assertEqualsVerbose(1, l(paramsPlus(litmapparams(a := 3), b := 4));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

-
Snippet ID: #1022194
Snippet name: Test optPar with map (and without)
Eternal ID of this version: #1022194/3
Text MD5: f1e1444f4383481f3753e5419e5df4d5
Transpilation MD5: 84a77e96fdaf341e83235d9390e364ac
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-10 23:18:10
Source code size: 592 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 334 / 1066
Version history: 2 change(s)
Referenced in: