function pdflib_test ( )

%*****************************************************************************80
%
%% pdflib_test() tests pdflib().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../pdflib' );
  addpath ( '../rnglib' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pdflib_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test pdflib().\n' );

  i4_binomial_pdf_test ( );
  i4_binomial_sample_test ( );
  i4_uniform_sample_test ( );
  r8_chi_sample_test ( );
  r8po_fa_test ( );
  r8vec_multinormal_pdf_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pdflib_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../pdflib' );
  rmpath ( '../rnglib' );

  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

