function boundary_word_is_convex_test ( )

%*****************************************************************************80
%
%% boundary_word_is_convex_test() tests boundary_word_is_convex().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 May 2021
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    George Bell,
%    The dynamics of spinning polyominoes,
%    Gathering for Gardner, G4G13.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_word_is_convex_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  boundary_word_is_convex() reports whether a shape is \n' );
  fprintf ( 1, '  convex, given its boundary word.\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 12
    c = pentomino_symbol ( i );
    s = pentomino_to_boundary_word ( c );
    convex = boundary_word_is_convex ( s );
    if ( convex )
      fprintf ( 1, '  %s pentomino defined by "%s" is     convex\n', c, s );
    else
      fprintf ( 1, '  %s pentomino defined by "%s" is NOT convex\n', c, s );
    end
  end

  return
end

