function test_partial_digest_test ()

%*****************************************************************************80
%
%% test_partial_digest_test tests test_partial_digest.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    31 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../test_partial_digest' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_partial_digest_test:\n' );
  fprintf ( 1, '  MATLAB version.\n' );
  fprintf ( 1, '  Test TEST_PARTIAL_DIGEST,\n' );
  fprintf ( 1, '  which creates test problems for the\n' );
  fprintf ( 1, '  partial digest problem.\n' );
%
%  Request a sample problem.
%
  k = 6;
  dmax = 20;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of nodes = %d\n', k );
  fprintf ( 1, '  Maximum distance = %d\n', dmax );
  
  [ locate, d, seed ] = test_partial_digest ( k, dmax, seed );
%
%  Sort the data.
%
  locate = sort ( locate );
  d = sort ( d );
%
%  Print the data.
%
  i4vec_print ( k, locate, '  Locations:' );
  i4vec_print ( k * ( k - 1 ) / 2, d, '  Distances:' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'test_partial_digest_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../test_partial_digest' );

  return
end
