function polyomino_sparse_to_full_test ( )

%*****************************************************************************80
%
%% polyomino_sparse_to_full_test tests polyomino_sparse_to_full.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 May 2020
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_sparse_to_full_test:\n' );
  fprintf ( 1, '  polyomino_sparse_to_full converts a polyomino\n' );
  fprintf ( 1, '  from sparse to full format.\n' );

  for i = 1 : 5

    ns = randi( [ 3, 20 ] );
    ps = polyomino_random ( ns );
    p = polyomino_sparse_to_full ( ps );
    [ m, n ] = size ( p );
    label = sprintf ( ...
      '  Random polyomino of %d squares on %d by %d grid', ns, m, n );
    polyomino_print ( m, n, p, label );

  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_sparse_to_full_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end

