X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=tests%2Fwood_gradient_tests.m;fp=tests%2Fwood_gradient_tests.m;h=700c66775899c43cef353f806e9f69016ce09948;hp=0000000000000000000000000000000000000000;hb=87d434fa93b3e52e8a5a0a9d99ae43492c35e1be;hpb=be86b42e1f06a8dddb6dd50832307e7d776023df diff --git a/tests/wood_gradient_tests.m b/tests/wood_gradient_tests.m new file mode 100644 index 0000000..700c667 --- /dev/null +++ b/tests/wood_gradient_tests.m @@ -0,0 +1,6 @@ +## The gradient should be zero at the optimal point. + +g = wood_gradient(1,1,1,1); +unit_test_equals("wood_gradient(1,1,1,1) == 0", ... + 0, ... + wood_gradient(1,1,1,1));