function i4vec_is_integer_test ( )

%*****************************************************************************80
%
%% i4vec_is_integer_test tests i4vec_is_integer.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 April 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_is_integer_test\n' );
  fprintf ( 1, '  i4vec_is_integer is TRUE if every entry of an I4VEC\n' );
  fprintf ( 1, '  is an integer.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 1: Obviously integer:\n' );
  fprintf ( 1, '\n' );
  n = 3;
  a = [ 1, 2, 3 ];
  a
  if ( i4vec_is_integer ( a ) )
    fprintf ( 1, '  A is an integer vector.\n' );
  else
    fprintf ( 1, '  A is NOT an integer vector.\n' );
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 2: Obviously NOT integer:\n' );
  fprintf ( 1, '\n' );
  n = 3;
  a = [ 4; 5; 6.5 ];
  a
  if ( i4vec_is_integer ( a ) )
    fprintf ( 1, '  A is an integer vector.\n' );
  else
    fprintf ( 1, '  A is NOT an integer vector.\n' );
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 3: Not Integer, Not obvious:\n' );
  fprintf ( 1, '\n' );
  n = 3;
  a = [ 1, 2, 3 ];
  a(2) = a(2) + sqrt ( eps );
  a
  if ( i4vec_is_integer ( a ) )
    fprintf ( 1, '  A is an integer vector.\n' );
  else
    fprintf ( 1, '  A is NOT an integer vector.\n' );
  end

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Example 4: Not Integer, Not obvious:\n' );
  fprintf ( 1, '\n' );
  n = 3;
  a = [ 1, 2, 300000000.2 ];
  a
  if ( i4vec_is_integer ( a ) )
    fprintf ( 1, '  A is an integer vector.\n' );
  else
    fprintf ( 1, '  A is NOT an integer vector.\n' );
  end

  return
end
