function word_to_vertex_xy_test ( )

%*****************************************************************************80
%
%% word_to_vertex_xy_test() tests word_to_vertex_xy().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 March 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'word_to_vertex_xy_test():\n' );
  fprintf ( 1, '  word_to_vertex_xy() takes the boundary word of an object\n' );
  fprintf ( 1, '  and computes the (x,y) coordinates of the vertices.\n' );

  k = 1;
  [ w, p_xy ] = tile_word ( k );
  label = '  Boundary word for tile001:';
  word_print ( w, p_xy, label );

  v = word_to_vertex_xy ( w, p_xy );

  nv = size ( v, 1 );
  r8mat_print ( nv, 2, v, '  Boundary vertex coordinates:' ); 

  fprintf ( 1, '\n' );
  fprintf ( 1, 'word_to_vertex_xy_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

