From 61e81191bd9229f2b7358fe257248046e293c259 Mon Sep 17 00:00:00 2001 From: nwolek Date: Wed, 30 Dec 2015 11:02:16 -0500 Subject: [PATCH] Interpolator: more tests of low v high delta. need to rethink None v potential Nearest options. issue #71 --- test/Interpolator/Interpolator.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test/Interpolator/Interpolator.cpp b/test/Interpolator/Interpolator.cpp index 44bc2eb..b3859f8 100644 --- a/test/Interpolator/Interpolator.cpp +++ b/test/Interpolator/Interpolator.cpp @@ -42,11 +42,19 @@ class InterpolatorTest { auto out2 = my_interp(x0,x1,0.25); - mTest->TEST_ASSERT("testNone with 2 samples produced correct output", out2 == x0); + mTest->TEST_ASSERT("testNone with 2 samples, low delta produced correct output", out2 == x0); - auto out3 = my_interp(x0,x1,x2,x3,0.25); + auto out2b = my_interp(x0,x1,0.75); - mTest->TEST_ASSERT("testNone with 4 samples produced correct output", out3 == x0); + mTest->TEST_ASSERT("testNone with 2 samples, high delta produced correct output", out2b == x0); + + auto out4 = my_interp(x0,x1,x2,x3,0.25); + + mTest->TEST_ASSERT("testNone with 4 samples, low delta produced correct output", out4 == x0); + + auto out4b = my_interp(x0,x1,x2,x3,0.75); + + mTest->TEST_ASSERT("testNone with 4 samples, high delta produced correct output", out4b == x0); }