function i4_is_power_of_2_test ( )

%*****************************************************************************80
%
%% I4_IS_POWER_OF_2_TEST tests I4_IS_POWER_OF_2.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 May 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_IS_POWER_OF_2_TEST\n' );
  fprintf ( 1, '  I4_IS_POWER_OF_2 reports whether an I4 is a power of 2.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  I     I4_IS_POWER_OF_2(I)\n' );
  fprintf ( 1, '\n' );

  for i = -4 : 25
    fprintf ( 1, '  %6d  %1d\n', i, i4_is_power_of_2 ( i ) );
  end

  return
end
