function ksubset_colex_unrank_test ( )

%*****************************************************************************80
%
%% KSUBSET_COLEX_UNRANK_TEST tests KSUBSET_COLEX__UNRANK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    18 November 2015
%
%  Author:
%
%    John Burkardt
%
  k = 3;
  n = 5;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'KSUBSET_COLEX_UNRANK_TEST\n' );
  fprintf ( 1, '  KSUBSET_COLEX_UNRANK unranks K-subsets of an N set,\n' );
  fprintf ( 1, '  using the colexicographic ordering:\n' );

  nksub = ksubset_enum ( k, n );
  rank = floor ( nksub / 2 );

  t = ksubset_colex_unrank ( rank, k, n );

  fprintf ( 1, ' \n' );
  fprintf ( 1, '  The element of rank %d:\n', rank );
  fprintf ( 1, ' \n' );
  i4vec_print ( k, t, '  The element:' );

  return
end
