]> gitweb.michael.orlitzky.com - octave.git/blobdiff - tests/rosenbrock_gradient_tests.m
Add the Rosenbrock functions and their tests.
[octave.git] / tests / rosenbrock_gradient_tests.m
diff --git a/tests/rosenbrock_gradient_tests.m b/tests/rosenbrock_gradient_tests.m
new file mode 100644 (file)
index 0000000..c45b8e7
--- /dev/null
@@ -0,0 +1,5 @@
+## The gradient should be zero at the optimal point.
+
+unit_test_equals("rosenbrock_gradient(1,1) == 0", ...
+                0, ...
+                rosenbrock_gradient(1,1));