function pariomino_index_test ( )

%*****************************************************************************80
%
%% pariomino_index_test tests pariomino_index.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pariomino_index_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  pariomino_index() assigns an index to each nonzero entry\n' );
  fprintf ( 1, '  of a pariomino.\n' );

  p = [ ...
    +1,  0, +1, -1;
    -1, +1, -1,  0;
     0, -1, +1,  0 ];

  pariomino_print ( p, '  The pariomino P:' );

  pin = pariomino_index ( p );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  PIN: Index vector for P:\n' );
  fprintf ( 1, '\n' );

  [ m, n ] = size ( p );

  for i = 1 : m
    for j = 1 : n
      fprintf ( 1, ' %d', pin(i,j) );
    end
    fprintf ( 1, '\n' );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pariomino_index_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );


  return
end
