function diophantine_2d_test ( )

%*****************************************************************************80
%
%% diophantine_2d_test() tests diophantine_2d().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 April 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../diophantine_2d' );

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

  diophantine_2d_test01 ( );
  diophantine_2d_test02 ( );
  diophantine_2d_test03 ( );
  diophantine_2d_test04 ( );
  diophantine_2d_test05 ( );
  diophantine_2d_test06 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'diophantine_2d_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../diophantine_2d' );

  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

