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

7
LINES

< > BotCompany Repo | #1036570 // test_differentByEpsilonRatio

JavaX fragment (include)

svoid test_differentByEpsilonRatio() {
  assertFalseVerbose(differentByEpsilonRatio(0, 0, 0.001));
  assertTrueVerbose(differentByEpsilonRatio(0, 1, 0.001));
  assertTrueVerbose(differentByEpsilonRatio(-1, 1, 0.001));
  assertTrueVerbose(differentByEpsilonRatio(-1, -1.1, 0.001));
  assertFalseVerbose(differentByEpsilonRatio(-1, -1.01, 0.1));
}

Author comment

Began life as a copy of #1036388

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036570
Snippet name: test_differentByEpsilonRatio
Eternal ID of this version: #1036570/1
Text MD5: 306a3b986206a6efb1fa4b78217d1cfb
Author: stefan
Category: javax / math
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-03-13 20:59:12
Source code size: 351 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 134 / 159
Referenced in: [show references]