function grid_word_test ( )

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

  for k = 1 : 4
    [ w, p ] = grid_word ( k );
    [ name, name2 ] = grid_name ( k );
    word_print ( w, p, name );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'grid_word_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

