function cg_lab_triangles_test ( )

%*****************************************************************************80
%
%% cg_lab_triangles_test() tests cg_lab_triangles().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 September 2024
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../cg_lab_triangles' );

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

  point_line_distance_signed_test ( );
  point_triangle_orientation_test ( );
  barycentric_test ( );
  program_04 ( );
  program_05 ( );
  program_06 ( );
  program_07 ( );
  program_08 ( );
  program_09 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'cg_lab_triangles_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../cg_lab_triangles' );

  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

