charts.lines: add a test for y-in-bounds?

char-rename
Alexander Iljin 2017-01-22 01:16:21 +03:00 committed by John Benediktsson
parent 59f35e4d97
commit 42e0224258
1 changed files with 7 additions and 0 deletions

View File

@ -297,4 +297,11 @@ IN: charts.lines.tests
{ { 4.5 0 } { 5 1 } { 6 1 } } clip-data
] unit-test
! just a little off the top
{ t } [
{ 0 99 }
{ { 0 100 } { 100 0 } { 100 50 } { 150 50 } { 200 100 } }
y-in-bounds?
] unit-test
! TODO: add tests where after search there is no adjustment necessary, so that extra adjustment would take bad elements.