1 ## Test the optimal point.
4 x = repmat([1;1], m, 1);
6 msg = sprintf("extended_rosenbrock1([1;1;...]) == 0 (m = %d)", m);
7 unit_test_equals(msg, 0, extended_rosenbrock1(x));
10 ## It should fail with the wrong number of coordinates.
11 f = extended_rosenbrock1([1]);
12 unit_test_equals("extended_rosenbrock1 fails when length(x) is odd", ...