function i4_sign_test ( )

%*****************************************************************************80
%
%% i4_sign_test() tests i4_sign().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 September 2014
%
%  Author:
%
%    John Burkardt
%
  test_num = 5;

  i4_test = [ -10, -7, 0, 5, 9 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_sign_test():\n' );
  fprintf ( 1, '  i4_sign() returns the sign of a number.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    I4  I4_SIGN(I4)\n' );
  fprintf ( 1, '\n' );
 
  for test = 1 : test_num
    i4 = i4_test(test);
    s = i4_sign ( i4 );
    fprintf ( 1, '  %3d  %11d\n', i4, s );
  end
 
  return
end
