Skip to content
Snippets Groups Projects
Commit 72d14f37 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Test starting at 0.

parent 63c2caed
No related branches found
No related tags found
No related merge requests found
...@@ -67,6 +67,12 @@ void testSampleFunction() { ...@@ -67,6 +67,12 @@ void testSampleFunction() {
double const ret2 = functionTester(J, start, 10); double const ret2 = functionTester(J, start, 10);
assert(std::abs(ret1 - ret2) < 1e-5); assert(std::abs(ret1 - ret2) < 1e-5);
start[0] = 0;
start[1] = 0;
double const ret3 = functionTester(J, start, 3);
assert(std::abs(ret1 - ret3) < 1e-5);
} }
void testSampleFunctionNonsmooth() { void testSampleFunctionNonsmooth() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment