function r8vec_sort_quick_a_test ( )

%*****************************************************************************80
%
%% r8vec_sort_quick_a_test() tests r8vec_sort_quick_a().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 20;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SORT_QUICK_A_TEST\n' );
  fprintf ( 1, '  R8VEC_SORT_QUICK_A sorts an R8VEC\n' );
  fprintf ( 1, '  using quick sort.\n' );

  b = 0.0;
  c = 10.0;
  a = b + ( c - b ) * rand ( n, 1 );
 
  r8vec_print ( n, a, '  Unsorted array:' );

  a = r8vec_sort_quick_a ( n, a );

  r8vec_print ( n, a, '  Sorted array:' );

  return
end
