function i4_abs_test ( )

%*****************************************************************************80
%
%% i4_abs_test() tests i4_abs().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 March 2015
%
%  Author:
%
%    John Burkardt
%
  i4_lo = -100;
  i4_hi = +100;
  test_num = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_abs_test():\n' );
  fprintf ( 1, '  i4_abs() returns the absolute value of an I4.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      A         B=I4_ABS(A)\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
    a = i4_uniform_ab ( i4_lo, i4_hi );
    b = i4_abs ( a );
    fprintf ( 1, '  %10d  %10d\n', a, b );
  end

  return
end
