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

9
LINES

< > BotCompany Repo | #1033288 // assertDoublesVeryClose

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

Libraryless. Click here for Pure Java version (3814L/22K).

svoid assertDoublesVeryClose(S msg default "", double x, double y, double threshold) {
  if (abs(x-y) > threshold)
    fail(msg, x, y);
}

svoid assertDoublesVeryClose(IF0<S> msg, double x, double y, double threshold) {
  if (abs(x-y) > threshold)
    fail(callF(msg), x, y);
}

Author comment

Began life as a copy of #1001055

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033288
Snippet name: assertDoublesVeryClose
Eternal ID of this version: #1033288/3
Text MD5: c15270bcdef0004d9e903f051beac193
Transpilation MD5: 05e44fdab3671ad1ac1bd33cbe6c24cd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-18 10:13:12
Source code size: 287 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 83 / 127
Version history: 2 change(s)
Referenced in: [show references]