function test_unimodal_test ( )

%*****************************************************************************80
%
%% test_unimodal_test() tests test_unimodal().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    16 March 2026
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../test_unimodal' );

  timestamp ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_unimodal_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test test_unimodal().\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of test functions is %d\n', p00_test_num ( ) );

  p00_title_test ( );
  p00_interval_test ( );
  p00_f_test ( );
  p00_plot_test ( );
  p00_sol_test ( );
%
%  Solvers.
%
  nf = 1001;
  p00_exhaust_test ( nf );

  x_tol = 1.0E-12;
  p00_bisection_test ( x_tol );

  x_tol = 1.0E-12;
  p00_golden_section_test ( x_tol );

% p00_optisection_test ( );

  p00_brent_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_unimodal_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  
  timestamp ( );

  rmpath ( '../test_unimodal' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2022
%
%  Author:
%
%    John Burkardt
%
  t = now ( );
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

