function i4vec_reverse_test ( )

%*****************************************************************************80
%
%% i4vec_reverse_test() tests i4vec_reverse().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_reverse_test():\n' );
  fprintf ( 1, '  i4vec_reverse() reverses a list of integers.\n' );

  a = randi ( [ 0, 3*n ], n, 1 );

  i4vec_print ( n, a, '  Original vector:' );

  a = i4vec_reverse ( n, a );

  i4vec_print ( n, a, '  Reversed:' );

  return
end
