function pariomino_parity_test ( )

%*****************************************************************************80
%
%% pariomino_parity_test tests pariomino_parity.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pariomino_parity_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  pariomino_parity() returns the parity of a pariomino.\n' );

  p = [ ...
    1, -1, 1, -1 ];
  pariomino_print ( p, '  pariomino #1:' );
  parity = pariomino_parity ( p );
  fprintf ( 1, '  parity is %d\n', parity );

  p = [ ...
    -1,  1,  0; ...
     0, -1,  0; ...
     0,  1, -1 ]; 
  pariomino_print ( p, '  pariomino #2:' );
  parity = pariomino_parity ( p );
  fprintf ( 1, '  parity is %d\n', parity );

  p = [ ...
     1,  0,  0;
    -1,  1, -1 ];
  pariomino_print ( p, '  pariomino #3:' );
  parity = pariomino_parity ( p );
  fprintf ( 1, '  parity is %d\n', parity );

  p = [ ...
     0,  0,  0,  0, -1,  0;
    +1,  0,  0,  0, +1, -1;
    -1,  0, -1, +1, -1,  0;
    +1,  0, +1,  0, +1,  0;
    -1, +1, -1, +1, -1,  0 ];
  pariomino_print ( p, '  pariomino #4:' );
  parity = pariomino_parity ( p );
  fprintf ( 1, '  parity is %d\n', parity );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pariomino_parity_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
 
  return
end

