function triangle_parity_test ( )

%*****************************************************************************80
%
%% triangle_parity_test tests triangle_parity().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 November 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_parity_test\n' );
  fprintf ( 1, '  triangle_parity() prints the parity of a polyiamond\n' );
  fprintf ( 1, '  from its triangle list.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '        Name  Size  Parity\n' );
  fprintf ( 1, '\n' );
  for k = 1 : 12
    t = triangle_hexiamond ( k );
    name = name_hexiamond ( k );
    m = size ( t, 1 );
    parity = triangle_parity ( t );
    fprintf ( 1, '  %10s    %2d      %2d\n', name, m, parity );
  end

  t = triangle_gort ( );
  name = 'gort';
  m = size ( t, 1 );
  parity = triangle_parity ( t );
  fprintf ( 1, '  %10s    %2d      %2d\n', name, m, parity );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_parity_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

