function r8row_running_sum_test ( )

%*****************************************************************************80
%
%% r8row_running_sum_test() tests r8row_running_sum().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8row_running_sum_test():\n' );
  fprintf ( 1, '  r8row_running_sum() returns the M running sums of an R8ROW.\n' );

  m = 5;
  n = 10;
  a = -5.0;
  b = +10.0;

  r = r8row_uniform_ab ( m, n, a, b );

  r8row_print ( m, n, r, '  Random R8ROW:' );

  s = r8row_running_sum ( m, n, r );

  r8row_print ( m, n + 1, s, '  Running sums:' )

  return
end
