function boundary_to_edge_test ( )

%*****************************************************************************80
%
%% boundary_to_edge_test() tests boundary_to_edge().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 July 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_to_edge_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  boundary_to_edge() uses a boundary word to deermine\n' );
  fprintf ( 1, '  the (i,j) coordinates of the edge nodes.\n' );

  k = 4;
  [ w, p ] = tetrahex_word ( k );
  name = '  boundary word';
  boundary_print ( w, p, name );

  e = boundary_to_edge ( w, p );
  name = '  edge node coordinates:';

  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', name );
  fprintf ( 1, '\n' );

  en = size ( e, 1 );

  for i = 1 : en
    fprintf ( 1, '  %2d:', i );
    for j = 1 : 2
      fprintf ( 1, ' %d', e(i,j) );
    end
    fprintf ( 1, '\n' );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_to_edge_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

