function pruefer_unrank_test ( )

%*****************************************************************************80
%
%% PRUEFER_UNRANK_TEST tests PRUEFER_UNRANK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    23 December 2015
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'PRUEFER_UNRANK_TEST\n' );
  fprintf ( 1, '  PRUEFER_UNRANK unranks Pruefer codes.\n' );

  rank = 8;

  p = pruefer_unrank ( rank, n );

  i4vec_transpose_print ( n - 2, p, '  The element of rank 8:' );

  return
end
