function triangle_edge_length_test ( )

%*****************************************************************************80
%
%% TRIANGLE_EDGE_LENGTH_TEST tests TRIANGLE_EDGE_LENGTH.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 October 2015
%
%  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(1:2,1:3) = [ ...
    4.0, 2.0; ...
    1.0, 5.0; ...
   -2.0, 2.0 ]';

  r8mat_transpose_print ( 2, 3, t, '  Triangle vertices:' );

  edge_length = triangle_edge_length ( t );

  r8vec_print ( 3, edge_length, '  EDGE_LENGTHS:' );

  t(1:2,1:3) = [ ...
    4.0, 2.0; ...
    5.0, 4.0; ...
    6.0, 6.0 ]';

  r8mat_transpose_print ( 2, 3, t, '  Triangle vertices:' );

  edge_length = triangle_edge_length ( t );

  r8vec_print ( 3, edge_length, '  EDGE_LENGTHS:' );

  t(1:2,1:3) = [ ...
    4.0, 2.0; ...
    1.0, 5.0; ...
    4.0, 2.0 ]';

  r8mat_transpose_print ( 2, 3, t, '  Triangle vertices:' );

  edge_length = triangle_edge_length ( t );

  r8vec_print ( 3, edge_length, '  EDGE_LENGTHS:' );

  return
end
