Libraryless. Click here for Pure Java version (3978L/21K).
1 | static Scorer assertScoreGreaterVerbose(double minScore, Scorer scorer) { |
2 | double score = scorer.score(); |
3 | S msg = "Expected score: " + minScore + ", got: " + scorer; |
4 | if (score <= minScore) fail(msg); |
5 | else print(msg); |
6 | ret scorer; |
7 | } |
Began life as a copy of #1032407
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032439 |
Snippet name: | assertScoreGreaterVerbose |
Eternal ID of this version: | #1032439/4 |
Text MD5: | b7101b2affb33c53aca09ae59ae25f39 |
Transpilation MD5: | a4391bda724d0d6fa3b6d8aacc6d1975 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-05 06:25:09 |
Source code size: | 245 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 172 / 224 |
Version history: | 3 change(s) |
Referenced in: | [show references] |