sclass TestResults extends TestResult { new L<TestResult> results; double scoreSum; void add(TestResult r) { scoreSum += r.okPercentage; results.add(r); okPercentage = doubleRatio(scoreSum, l(results)); } toString { S s = super.toString() + " (" + n2(results, "test") + ")"; TestResult worst = lowestByField(results, 'okPercentage); if (worst != null) s += "\n Worst result: " + worst; ret s; } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020469 |
Snippet name: | TestResults |
Eternal ID of this version: | #1020469/7 |
Text MD5: | ea9e8a4d2bc900f0b5bc5ca513c0950c |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-23 19:50:35 |
Source code size: | 459 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 352 / 849 |
Version history: | 6 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |