function ksubset_revdoor_rank_test ( )

%*****************************************************************************80
%
%% KSUBSET_REVDOOR_RANK_TEST tests KSUBSET_REVDOOR_RANK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 December 2015
%
%  Author:
%
%    John Burkardt
%
  k = 3;
  n = 5;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'KSUBSET_REVDOOR_RANK_TEST\n' );
  fprintf ( 1, '  KSUBSET_REVDOOR_RANK ranks K-subsets of an N set\n' );
  fprintf ( 1, '  using the revolving door ordering.\n' );

  t = [ 2, 4, 5 ];
  i4vec_transpose_print ( k, t, '  The K-subset to be ranked:' );

  rank = ksubset_revdoor_rank ( k, n, t );

  fprintf ( 1, ' \n' );
  fprintf ( 1, '  The rank of the element is computed as %d:\n', rank );

  return
end
