function polyomino_boundary_word_test ( )

%*****************************************************************************80
%
%% polyomino_boundary_word_test() tests polyomino_boundary_word().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    05 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyomino_boundary_word_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  polyomino_boundary_word() returns the boundary word of a polyomino.\n' );

  p = [ ...
    1, 0, 0; ...
    1, 1, 0; ...
    0, 1, 1; ...
    0, 1, 0 ];

  s = polyomino_boundary_word ( p );

  polyomino_print ( p, s );

  p = [ ...
    1, 0, 0, 1, 1; ...
    1, 1, 0, 0, 1; ...
    0, 1, 1, 0, 1; ...
    0, 1, 0, 0, 1; ...
    0, 1, 1, 1, 1 ];

  s = polyomino_boundary_word ( p );

  polyomino_print ( p, s );

  return
end

