function boundary_word_boundary_test ( )

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

  for i = 1 : 5
    if ( i == 1 )
      s = 'rrururullulddldd';
    elseif ( i == 2 )
      s = 'rurdrururulurullddlldldd';
    elseif ( i == 3 )
      s = 'rurdruuluulldrdldd';
    elseif ( i == 4 )
      s = 'rurdrdldrdrurulururdrurululdlulurululdldrdldluldldrd';
    else
      s = 'rurdruuuldluldldrd';
    end
    [ x, y ] = boundary_word_boundary ( s );
    r8vec2_print ( x, y, s );
  end

  return
end

