function triangle_test ( )

%*****************************************************************************80
%
%% triangle_test() tests triangle().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 July 2023
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../triangle' );

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

  triangle_angles_test ( );
  triangle_area_test ( );
  triangle_centroid_test ( );
  triangle_circumcircle_test ( );
  triangle_contains_point_test ( );
  triangle_diameter_test ( );
  triangle_edge_length_test ( );
  triangle_incircle_test ( );
  triangle_orientation_test ( );
  triangle_orthocenter_test ( );
  triangle_point_dist_test ( );
  triangle_point_near_test ( );
  triangle_quality_test ( );
  triangle_reference_sample_test ( );
  triangle_sample_test ( );
  triangle_xsi_to_xy_test ( );
  triangle_xy_to_xsi_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../triangle' );

  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

