1 | svoid test_differentByEpsilonRatio() {
|
2 | assertFalseVerbose(differentByEpsilonRatio(0, 0, 0.001)); |
3 | assertTrueVerbose(differentByEpsilonRatio(0, 1, 0.001)); |
4 | assertTrueVerbose(differentByEpsilonRatio(-1, 1, 0.001)); |
5 | assertTrueVerbose(differentByEpsilonRatio(-1, -1.1, 0.001)); |
6 | assertFalseVerbose(differentByEpsilonRatio(-1, -1.01, 0.1)); |
7 | } |
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: | 376 / 408 |
| Referenced in: | [show references] |