function r8_is_integer_test ( )

%*****************************************************************************80
%
%% R8_IS_INTEGER_TEST tests R8_IS_INTEGER.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    12 August 2017
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_IS_INTEGER_TEST\n' );
  fprintf ( 1, '  R8_IS_INTEGER reports whether an R8 stores an integer value.\n' );
  fprintf ( 1, '\n' );

  for i = -8 : 15
    r = i / 7.0;
    v = r8_is_integer ( r );
    fprintf ( 1, '  R8_IS_INTEGER(%f) = %d\n', r, v );
  end

  return
end
