function r8vec_sum_running_test ( )

%*****************************************************************************80
%
%% R8VEC_SUM_RUNNING_TEST tests R8VEC_SUM_RUNNING.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    21 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SUM_RUNNING_TEST\n' );
  fprintf ( 1, '  R8VEC_SUM_RUNNING returns the running sums of an R8VEC.\n' );

  n = 10;
  a = -5.0;
  b = +10.0;
  seed = 123456789;

  [ r, seed ] = r8vec_uniform_ab ( n, a, b, seed );

  r8vec_print ( n, r, '  Random R8VEC:' );

  s = r8vec_sum_running ( n, r );

  r8vec_print ( n + 1, s, '  Running sums:' )

  return
end
