function triangle_area_test ( )

%*****************************************************************************80
%
%% triangle_area_test() tests triangle_area();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 March 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_area_test():\n' );
  fprintf ( 1, '  triangle_area() computes the area of a triangle.\n' );
  
  t = [ 0.0, 0.0; 1.0, 0.0; 0.0, 1.0 ];
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Triangle vertices:\n' );
  disp ( t )
  area = triangle_area ( t );
  fprintf ( 1, '  Triangle area is %g (should be 0.5) \n', area );

  t = [ 4.0, 1.0; 8.0, 3.0; 0.0, 9.0 ];
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Triangle vertices:\n' );
  disp ( t )
  area = triangle_area ( t );
  fprintf ( 1, '  Triangle area is %g (should be 20)\n', area );

  return
end
