function r8_sign_char_test ( )

%*****************************************************************************80
%
%% R8_SIGN_CHAR_TEST tests R8_SIGN_CHAR.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    31 July 2018
%
%  Author:
%
%    John Burkardt
%
  test_num = 5;

  r8_test = [ -1.25, -0.25, 0.0, +0.5, +9.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_SIGN_CHAR_TEST\n' );
  fprintf ( 1, '  R8_SIGN3_CHAR returns the three-way sign of an R8\n' );
  fprintf ( 1, '  as a character.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    R8  R8_SIGN_CHAR(R8)\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
    r8 = r8_test(test);
    c = r8_sign_char ( r8 );
    fprintf ( 1, '  %8.4f  "%s"\n', r8, c );
  end

  return
end
