function i4_length_test ( )

%*****************************************************************************80
%
%% i4_length_test() tests i4_length().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 January 2016
%
%  Author:
%
%    John Burkardt
%
  test_num = 6;

  i4_test = [ 0, 1, -1, 140, -1952, 123456 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_length_test():\n' );
  fprintf ( 1, '  i4_length() computes an integer''s "length".\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        I4    Length\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num

    i4 = i4_test(test);

    j4 = i4_length ( i4 );

    fprintf ( 1, '  %8d  %8d\n', i4, j4 );

  end

  return
end
