function boundary_representative_test ( )

%*****************************************************************************80
%
%% boundary_representative_test() tests boundary_representative().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 June 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_representative_test():\n' );
  fprintf ( 1, '  boundary_representative() is given a boundary word, and\n' );
  fprintf ( 1, '  returns the representative of its equivalence class.\n' );

  for k = 1 : 12
    [ w, p ] = boundary_hexiamond ( k );
    name = name_hexiamond ( k );
    name2 = [ '  ', name, ':' ];
    boundary_print ( w, p, name2 );
    w2 = boundary_representative ( w );
    name2 = [ '  ', name, ' representative:' ];
    boundary_print ( w2, p, name2 );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_representative_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

