function rgf_rank_test ( )

%*****************************************************************************80
%
%% rgf_rank_test() tests rgf_rank().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 December 2015
%
%  Author:
%
%    John Burkardt
%
  m = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'rgf_rank_test():\n' );
  fprintf ( 1, '  rgf_rank() ranks restricted growth functions.\n' );

  f = [ 1, 2, 1, 3 ];
  i4vec_transpose_print ( m, f, '  Element to be ranked:' );

  rank = rgf_rank ( m, f );

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

  return
end
