function polyomino_embed_number_test ( )

%*****************************************************************************80
%
%% polyomino_embed_number_test() tests polyomino_embed_number().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 April 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_embed_number_test():\n' );
  fprintf ( 1, '  polyomino_embed_number() reports the number of ways a\n' );
  fprintf ( 1, '  fixed polyomino can be embedded in a region.\n' );

  mr = 4;
  nr = 4;
  r = [ ...
    0, 1, 1, 1; 
    1, 1, 0, 1;
    1, 1, 1, 1; 
    1, 0, 1, 1 ];

  polyomino_print ( r, '  The given region R:' );

  mp = 3;
  np = 2;
  p = [ ...
    0, 1;
    0, 1;
    1, 1 ];

  polyomino_print ( p, '  The given polyomino P:' );

  number = polyomino_embed_number ( mr, nr, r, mp, np, p );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  As a fixed polyomino, P can be embedded in R in %d ways\n', number );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_embed_number_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
