function polyomino_charge_test ( )

%*****************************************************************************80
%
%% polyomino_charge_test() tests polyomino_charge().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_charge_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  polyomino_charge() charges the cells of a polyomino,\n' );
  fprintf ( 1, '  creating a pariomino.\n');

  p1 = [ ...
     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 ];
  [ mp, np ] = size ( p1 );
  polyomino_print ( p1, '  polyomino:' );

  p2 = polyomino_charge ( p1 );
  pariomino_print ( p2, '  resulting pariomino:' );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_charge_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
 
  return
end

