function i4_to_unary_test ( )

%*****************************************************************************80
%
%% I4_TO_UNARY_TEST tests I4_TO_UNARY.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    30 January 2016
%
%  Author:
%
%    John Burkardt
%
  test_num = 3;

  i4_test = [ -5, 0, 7 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_TO_UNARY_TEST\n' );
  fprintf ( 1, '  I4_TO_UNARY converts an integer to unary.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        I4     UNARY\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num

    i4 = i4_test(test);

    s = i4_to_unary ( i4 );

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

  end

  return
end
