function square_hex_grid_test ( )

%*****************************************************************************80
%
%% square_hex_grid_test() tests square_hex_grid().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 December 2022
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../square_hex_grid' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'square_hex_grid_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test square_hex_grid().\n' );
%
%  Tests on the unit square.
%
  square_hex_grid_test01 ( );
  square_hex_grid_test02 ( );
  square_hex_grid_test03 ( );
  square_hex_grid_test04 ( );
  square_hex_grid_test05 ( );
  square_hex_grid_test06 ( );
%
%  Tests on an arbitrary rectangle.
%
  square_hex_grid_test07 ( );
  square_hex_grid_test08 ( );
  square_hex_grid_test09 ( );
  square_hex_grid_test10 ( );
  square_hex_grid_test11 ( );
  square_hex_grid_test12 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'square_hex_grid_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../square_hex_grid' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2022
%
%  Author:
%
%    John Burkardt
%
  t = now ( );
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

