svoid test_fourPointRangeScore() { FourPointsRange range = new(0, 2, 3, 5); assertEqualsVerbose(0.0, fourPointRangeScore(-1, range)); assertEqualsVerbose(0.0, fourPointRangeScore(0, range)); assertEqualsVerbose(0.5, fourPointRangeScore(1, range)); assertEqualsVerbose(1.0, fourPointRangeScore(2, range)); assertEqualsVerbose(1.0, fourPointRangeScore(3, range)); assertEqualsVerbose(0.5, fourPointRangeScore(4, range)); assertEqualsVerbose(0.0, fourPointRangeScore(5, range)); assertEqualsVerbose(0.0, fourPointRangeScore(6, range)); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022911 |
Snippet name: | test_fourPointRangeScore - OK |
Eternal ID of this version: | #1022911/2 |
Text MD5: | 340a8698d494b35a3968934f049d677c |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-14 20:49:36 |
Source code size: | 562 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 269 / 313 |
Version history: | 1 change(s) |
Referenced in: | [show references] |