function boundary_word_plot_test ( )

%*****************************************************************************80
%
%% boundary_word_plot_test() tests boundary_word_plot().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 June 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_word_plot_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  boundary_word_plot() plots a polyomino\n' );
  fprintf ( 1, '  defined by a given boundary word.\n' );
  fprintf ( 1, '\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';
    elseif ( i == 5 )
      s = 'rurdruuuldluldldrd';
    end
    boundary_word_plot ( s );
    filename = sprintf ( '%s_plot.png', s );
    print ( '-dpng', filename );
    fprintf ( 1, '  Graphics saved as "%s"\n', filename );
  end

  return
end

