function triangle_diameter_test ( )

%*****************************************************************************80
%
%% triangle_diameter_test() tests triangle_diameter().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 July 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_diameter_test():\n' );
  fprintf ( 1, '  triangle_diameter() computes the diameter of \n' );
  fprintf ( 1, '  the SMALLEST circle around a triangle.\n' );

  t = [ ...
    4.0, 2.0; ...
    1.0, 5.0; ...
   -2.0, 2.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Triangle vertices:\n' );
  disp ( t );

  diameter = triangle_diameter ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Diameter = %f\n', diameter );

  t = [ ...
    4.0, 2.0; ...
    5.0, 4.0; ...
    6.0, 6.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Triangle vertices:\n' );
  disp ( t );

  diameter = triangle_diameter ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Diameter = %f\n', diameter );

  t = [ ...
    4.0, 2.0; ...
    1.0, 5.0; ...
    4.0, 2.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Triangle vertices:\n' );
  disp ( t );

  diameter = triangle_diameter ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Diameter = %f\n', diameter );

  return
end
