function unicycle_rank_test ( )

%*****************************************************************************80
%
%% unicycle_rank_test() tests unicycle_rank().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    15 June 2012
%
%  Author:
%
%    John Burkardt
%
  n = 5;

  u = [ 1, 5, 2, 3, 4 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'unicycle_rank_test():\n' );
  fprintf ( 1, '  unicycle_rank() ranks a unicycle.\n' );

  unicycle_print ( n, u, '  The unicycle:' );
 
  rank = unicycle_rank ( n, u );
 
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The rank is: %d\n', rank );
 
  return
end
