Download Jar. Uses 3874K of libraries. Click here for Pure Java version (8635L/62K).
!7 p-experiment { testOptEval("vmPort()", vmPort()); testOptEval([[reversedString("abc")]], reversedString("abc")); testOptEval([[reversedString("abc");]], reversedString("abc")); testOptEval([[#123]], #123); testEval("1+2", 3); print("\nAll OK"); } svoid testOptEval(S code, O expectedResult) { if (testEval(code, expectedResult)) quickFail("Shouldn't bail"); } static bool testEval(S code, O expectedResult) { print(code); long time = sysNow(); int bails = optimizedJavaEval_bails!; O result = optimizedJavaEval(code); bool bailed = bails < optimizedJavaEval_bails!; printIndent("[" + (elapsedMS(time) + " ms" + (bailed ? ", bailed" : "") + "] " + sfu(result)); assertEquals(expectedResult, result); ret bailed; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015631 |
Snippet name: | Test optimizedJavaEval [OK] |
Eternal ID of this version: | #1015631/13 |
Text MD5: | b7db09d8811838068e0ad1e63284c2e9 |
Transpilation MD5: | 700623f28fac501c26d706ded4227289 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-20 13:47:05 |
Source code size: | 777 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 501 / 1212 |
Version history: | 12 change(s) |
Referenced in: | [show references] |