function polyominoes_print_test ( )

%*****************************************************************************80
%
%% POLYOMINOES_PRINT_TEST tests POLYOMINOES_PRINT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 May 2018
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'POLYOMINOES_PRINT_TEST\n' );
  fprintf ( 1, '  POLYOMINOES_PRINT prints an array of polyominoes.\n' );
%
%  Define several polyominos.
%
  p1 = [ ...
    1, 1, 1, 1 ];
  [ mp1, np1 ] = size ( p1 );

  p2 = [ ...
    1, 1, 0; ...
    0, 1, 0; ...
    0, 1, 1 ]; 
  [ mp2, np2 ] = size ( p2 );

  p3 = [ ...
    1, 0, 0;
    1, 1, 1 ];
  [ mp3, np3 ] = size ( p3 );
%
%  Pack the polyominoes into a single array.
%
  mp = 3;
  np = 5;
  p_num = 3;

  p = zeros ( 3, 5, p_num );
 
  p(1:mp1,1:np1,1) = p1(1:mp1,1:np1);
  p(1:mp2,1:np2,2) = p2(1:mp2,1:np2);
  p(1:mp3,1:np3,3) = p3(1:mp3,1:np3);
%
%  Print the array of polyominoes.
%
  label = '  Array of polyominoes to be analyzed:';
  polyominoes_print ( mp, np, p_num, p, label );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'POLYOMINOES_PRINT_TEST\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );
 
  return
