function triangle_range_test ( )

%*****************************************************************************80
%
%% triangle_range_test tests triangle_range().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 October 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_range_test\n' );
  fprintf ( 1, '  triangle_range() finds the minimum and maximum I and J\n' );
  fprintf ( 1, '  coordinates of a polyiamond drawn from its triangle list.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        Name  Imin  Imax  Jmin  jmax\n' );
  fprintf ( 1, '\n' );

  name = 'tiny';
  w = triangle_tiny ( );
  [ imin, imax, jmin, jmax ] = triangle_range ( w );
  fprintf ( 1, '  %10s  %4d  %4d  %4d  %4d\n', ...
    name, imin, imax, jmin, jmax );

  for k = 1 : 12
    name = name_hexiamond ( k );
    w = triangle_hexiamond ( k );
    [ imin, imax, jmin, jmax ] = triangle_range ( w );
    fprintf ( 1, '  %10s  %4d  %4d  %4d  %4d\n', ...
      name, imin, imax, jmin, jmax );
  end

  name = 'gort';
  w = triangle_gort ( );
  [ imin, imax, jmin, jmax ] = triangle_range ( w );
  fprintf ( 1, '  %10s  %4d  %4d  %4d  %4d\n', ...
    name, imin, imax, jmin, jmax );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_range_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

