function r8vec_running_sign3_test ( )

%*****************************************************************************80
%
%% R8VEC_RUNNING_SIGN3_TEST tests R8VEC_RUNNING_SIGN3.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    21 February 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_RUNNING_SIGN3_TEST\n' );
  fprintf ( 1, '  R8VEC_RUNNING_SIGN3 returns the running sign3 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_running_sign3 ( n, r );

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

  return
end
