function t_grid_word_test ( )

%*****************************************************************************80
%
%% t_grid_word_test() tests t_grid_word().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 December 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 't_grid_word_test():\n' );
  fprintf ( 1, '  t_grid_word() returns the boundary word of a grid.\n' );

  for grid_index = 1 : 4
    [ grid_w, grid_p ] = t_grid_word ( grid_index );
    [ name1, name2 ] = t_grid_name ( grid_index );
    word_print ( grid_w, grid_p, name1 );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 't_grid_word_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

