function triangle_edge_length_test ( )

%*****************************************************************************80
%
%% triangle_edge_length_test() tests triangle_edge_length().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 July 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_edge_length_test():\n' );
  fprintf ( 1, '  triangle_edge_length() computes the edge lengths \n' );
  fprintf ( 1, '  of 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 );

  edge_length = triangle_edge_length ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Edge lengths:\n' );
  disp ( edge_length );

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

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

  edge_length = triangle_edge_length ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Edge lengths:\n' );
  disp ( edge_length );

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

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

  edge_length = triangle_edge_length ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Edge lengths:\n' );
  disp ( edge_length );

  return
end
