function i4_to_hex_test ( )

%*****************************************************************************80
%
%% i4_to_hex_test() tests i4_to_hex().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 August 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_to_hex_test():\n' );
  fprintf ( 1, '  i4_to_hex() converts a decimal integer to hex format.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  I4  Hex\n' );
  fprintf ( 1, '\n' );

  for test = 1 : 10

    i = randi ( [ 1, 1000 ], 1 );
    s = i4_to_hex ( i );
    fprintf ( 1, '  %3d  "%s"\n', i, s );

  end

  return
end
