]> gitweb.michael.orlitzky.com - octave.git/blobdiff - tests/rosenbrock_tests.m
Add the Rosenbrock functions and their tests.
[octave.git] / tests / rosenbrock_tests.m
diff --git a/tests/rosenbrock_tests.m b/tests/rosenbrock_tests.m
new file mode 100644 (file)
index 0000000..66af77a
--- /dev/null
@@ -0,0 +1,5 @@
+## Test the optimal point.
+
+unit_test_equals("rosenbrock(1,1) == 0", ...
+                0, ...
+                rosenbrock(1,1));