Download Jar. Libraryless. Click here for Pure Java version (6178L/44K).
| 1 | !7 | 
| 2 | |
| 3 | //set flag guessDeepObjectSize_recursive_debug. | 
| 4 | |
| 5 | p-exp {
 | 
| 6 |   assertTrue(printQuine(f -> long { guessStringSize("abc") }) > 8);
 | 
| 7 |   assertTrue(guessStringSize("abc") < 100);
 | 
| 8 |   assertTrue(printQuine(f -> long { guessStringSize("abcdefghijklm") }) > guessStringSize(""));
 | 
| 9 |   printQuine(f { guessDeepObjectSize_recursive(new Long(1234)) });
 | 
| 10 |   printQuine(f { guessDeepObjectSize_recursive(ll()) });
 | 
| 11 |   printQuine(f { guessDeepObjectSize_recursive(ll("a")) });
 | 
| 12 |   printQuine(f { guessDeepObjectSize_recursive(ll("a", "b")) });
 | 
| 13 |   printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "c")) });
 | 
| 14 |   printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "a")) });
 | 
| 15 |   printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "a", "b")) });
 | 
| 16 |   printQuine(f { guessDeepObjectSize_recursive(ll("a", "b", "a", "b", "a", "b")) });
 | 
| 17 | |
| 18 | assertEqualsVerbose(0L, guessDeepObjectSize_recursive(jpanel())); | 
| 19 | } | 
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: | 689 / 1714 | 
| Version history: | 12 change(s) | 
| Referenced in: | [show references] |