function partial_digest_test ( )

%*****************************************************************************80
%
%% partial_digest_test() tests partial_digest().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../partial_digest' );
  addpath ( '../test_partial_digest' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'partial_digest_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test partial_digest()\n' );

  find_distances_test ( );
  i4vec_max_last_test ( );
  i4vec_print_test ( );
  partial_digest_recur_test01 ( );
  partial_digest_recur_test02 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'partial_digest_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../partial_digest' );
  rmpath ( '../test_partial_digest' );

  return
end
function timestamp ( )

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

  return
end

