function i4_is_fibonacci_test ( )

%*****************************************************************************80
%
%% I4_IS_FIBONACCI_TEST tests I4_IS_FIBONACCI.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    12 February 2017
%
%  Author:
%
%    John Burkardt
%
  test_num = 10;
  i4_test = [ - 13, 0, 1, 8, 10, 50, 55, 100, 144, 200 ];
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_IS_FIBONACCI_TEST\n' );
  fprintf ( 1, '  I4_IS_FIBONACCI returns T or F depending on\n' );
  fprintf ( 1, '  whether I4 is a Fibonacci number.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '   I4   T/F\n' );
  fprintf ( 1, '\n' );

  for i = 1 : test_num

    i4 = i4_test(i);
    l = i4_is_fibonacci ( i4 );
    fprintf ( 1, '  %4d',  i4 );
    if ( l )
      fprintf ( 1, '    True\n' );
    else
      fprintf ( 1, '    False\n' );
    end

  end

  return
end
