function perm_tj_unrank_test ( )

%*****************************************************************************80
%
%% PERM_TJ_UNRANK_TEST tests PERM_TJ_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, 'PERM_TJ_UNRANK_TEST\n' );
  fprintf ( 1, '  PERM_TJ_UNRANK unranks\n' );
  fprintf ( 1, '  permutations using the Trotter-Johnson ordering,\n' );

  rank = 12;

  p = perm_tj_unrank ( rank, n );

  perm_print ( n, p, '  The element of rank 12:' );

  return
end
