function i4_power_test ( )

%*****************************************************************************80
%
%% I4_POWER_TEST tests I4_POWER.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 May 2015
%
%  Author:
%
%    John Burkardt
%
  test_num = 7;
  i_test = [ 0, 1, 2, 3, 10, -1, -2 ];
  j_test = [ 1, 2, 3, 3, 3, 4, 5 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_POWER_TEST\n' );
  fprintf ( 1, '  I4_POWER computes I^J\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '         I       J  I4_POWER(I,J)\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
    i = i_test(test);
    j = j_test(test);
    fprintf ( 1, '  %8d  %8d  %8d\n', i, j, i4_power ( i, j ) );
  end

  return
end