Skip to content

Commit

Permalink
Interpolator: more tests of low v high delta. need to rethink None v …
Browse files Browse the repository at this point in the history
…potential Nearest options. issue #71
  • Loading branch information
nwolek committed Dec 30, 2015
1 parent 6e6a00e commit 61e8119
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions test/Interpolator/Interpolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}

Expand Down

0 comments on commit 61e8119

Please sign in to comment.