function i4_width_test ( )

%*****************************************************************************80
%
%% I4_WIDTH_TEST tests I4_WIDTH.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 May 2015
%
%  Author:
%
%    John Burkardt
%
  test_num = 13;
  x_test = [ 0, 1, 2, 3, 9, 10, 11, 99, 101, -1, -2, -3, -9 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_WIDTH_TEST\n' );
  fprintf ( 1, '  I4_WIDTH determines the printing "width" of an I4.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '            I4      I4_WIDTH\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
    x = x_test(test);
    fprintf ( 1, '  %12d  %12d\n', x, i4_width ( x ) );
  end

  return
end