1 | svoid test_fourPointRangeScore() { |
2 | FourPointsRange range = new(0, 2, 3, 5); |
3 | assertEqualsVerbose(0.0, fourPointRangeScore(-1, range)); |
4 | assertEqualsVerbose(0.0, fourPointRangeScore(0, range)); |
5 | assertEqualsVerbose(0.5, fourPointRangeScore(1, range)); |
6 | assertEqualsVerbose(1.0, fourPointRangeScore(2, range)); |
7 | assertEqualsVerbose(1.0, fourPointRangeScore(3, range)); |
8 | assertEqualsVerbose(0.5, fourPointRangeScore(4, range)); |
9 | assertEqualsVerbose(0.0, fourPointRangeScore(5, range)); |
10 | assertEqualsVerbose(0.0, fourPointRangeScore(6, range)); |
11 | } |
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: | 270 / 314 |
Version history: | 1 change(s) |
Referenced in: | [show references] |