# HG changeset patch # User Chris Cannam # Date 1493900397 -3600 # Node ID 9a8995785827fc34efbf4b4948e17c9768227665 # Parent 12316a9bcc8f2c141bdb2411cbbbb768e88911a9 Another test, that needs some more work diff -r 12316a9bcc8f -r 9a8995785827 base/test/TestScaleTickIntervals.h --- a/base/test/TestScaleTickIntervals.h Thu May 04 10:46:38 2017 +0100 +++ b/base/test/TestScaleTickIntervals.h Thu May 04 13:19:57 2017 +0100 @@ -454,6 +454,7 @@ void linear_0_1_0() { + // senseless input auto ticks = ScaleTickIntervals::linear({ 0, 1, 0 }); vector expected { }; @@ -462,12 +463,22 @@ void linear_0_1_m1() { + // senseless input auto ticks = ScaleTickIntervals::linear({ 0, 1, -1 }); vector expected { }; compareTicks(ticks.ticks, expected); } + void linear_0p465_778_10() + { + // a case that gave unsatisfactory results in real life + auto ticks = ScaleTickIntervals::linear({ 0.465, 778.08, 10 }); + vector expected { + }; + compareTicks(ticks.ticks, expected); + } + void log_1_10_2() { auto ticks = ScaleTickIntervals::logarithmic({ 1, 10, 2 });