function hexity_reflect_test ( )

%*****************************************************************************80
%
%% hexity_reflect_test() tests hexity_reflect.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 March 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'hexity_reflect_test():\n' );
  fprintf ( 1, '  hexity_reflect() is given the hexity of an Eternity object\n' );
  fprintf ( 1, '  and computes its hexity after being reflected.\n' );
  fprintf ( 1, '\n' );
%
%  Get trinity word and compute grid hexity.
%
  o_w = 'AAKbBCCGGDdGIIII';
  o_p = [ 0, 0 ];
  o_h = object_hexity ( o_w, o_p );
  fprintf ( 1, '  Word: %s\n', o_w );
  fprintf ( 1, '  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %3d  %s\n', o_h, sum ( o_h ), '  Default configuration' );

  [ r_w, r_p ] = word_reflect_ij ( o_w, o_p );
  r_h = hexity_reflect ( o_h );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Word: %s\n', r_w );
  fprintf ( 1, '  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %2d  %3d  %s\n', r_h, sum ( r_h ), '  After reflection' );

  return
end

