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

7
LINES

< > BotCompany Repo | #1032439 // assertScoreGreaterVerbose

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3978L/21K).

static Scorer assertScoreGreaterVerbose(double minScore, Scorer scorer) {
  double score = scorer.score();
  S msg = "Expected score: " + minScore + ", got: " + scorer;
  if (score <= minScore) fail(msg);
  else print(msg);
  ret scorer;
}

Author comment

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: 90 / 136
Version history: 3 change(s)
Referenced in: [show references]