function boundary_word_representative_test ( )

%*****************************************************************************80
%
%% boundary_word_representative_test() tests boundary_word_representative().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_word_representative_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  boundary_word_representative() returns the representative\n' );
  fprintf ( 1, '  for a boundary word.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  boundary word                   representative\n' );
  fprintf ( 1, '\n' );
  for i = 1 : 8

    if ( i == 1 )
      c = 'cdeab';
    elseif ( i == 2 )
      c = 'carpathian';
    elseif ( i == 3 )
      c = 'pathiancar';
    elseif ( i == 4 )
      c = 'naihtaprac';
    elseif ( i == 5 )
      c = 'rrururullulddldd';
    elseif ( i == 6 )
      c = 'rurdrururulurullddlldldd';
    elseif ( i == 7 )
      c = 'llddlldlddrurdrururuluru';
    elseif ( i == 8 )
      c = 'ddldllddllurulurururdrur';
    end

    crep = boundary_word_representative ( c );
    fprintf ( 1, '  %-25s  %-25s\n', c, crep )

  end

  return
end

