function npart_rsf_lex_rank_test ( )

%*****************************************************************************80
%
%% NPART_RSF_LEX_RANK_TEST tests NPART_RSF_LEX_RANK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 December 2015
%
%  Author:
%
%    John Burkardt
%
  npart = 3;
  n = 12;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'NPART_RSF_LEX_RANK_TEST\n' );
  fprintf ( 1, '  NPART_RSF_LEX_RANK ranks partitions of N with NPART parts\n' );
  fprintf ( 1, '  in reverse standard form.\n' );
  fprintf ( 1, ' \n' );

  t = [ 1, 5, 6 ];
  i4vec_transpose_print ( npart, t, '  Element:' );

  rank = npart_rsf_lex_rank ( n, npart, t );

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

  return
end
