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

19
LINES

< > BotCompany Repo | #1018908 // Test guessDeepObjectSize_recursive (OK I guess)

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

Download Jar. Libraryless. Click here for Pure Java version (6178L/44K).

!7

//set flag guessDeepObjectSize_recursive_debug.

p-exp {
  assertTrue(printQuine(f -> long { guessStringSize("abc") }) > 8);
  assertTrue(guessStringSize("abc") < 100);
  assertTrue(printQuine(f -> long { guessStringSize("abcdefghijklm") }) > guessStringSize(""));
  printQuine(f { guessDeepObjectSize_recursive(new Long(1234)) });
  printQuine(f { guessDeepObjectSize_recursive(ll()) });
  printQuine(f { guessDeepObjectSize_recursive(ll("a")) });
  printQuine(f { guessDeepObjectSize_recursive(ll("a", "b")) });
  printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "c")) });
  printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "a")) });
  printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "a", "b")) });
  printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "a", "b", "a", "b")) });
  
  assertEqualsVerbose(0L, guessDeepObjectSize_recursive(jpanel()));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018908
Snippet name: Test guessDeepObjectSize_recursive (OK I guess)
Eternal ID of this version: #1018908/13
Text MD5: d8e8dbbca18567ddbcc0c14b7d3432d8
Transpilation MD5: 6eaef4dbe3cb2e9d90478f784c6c4fe8
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-15 22:08:24
Source code size: 908 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 305 / 896
Version history: 12 change(s)
Referenced in: [show references]