function pariomino_area_test ( )

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

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

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

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

  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:' );
  area = pariomino_area ( p );
  fprintf ( 1, '  Area is %d\n', area );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pariomino_area_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
 
  return
end

