function fibonacci_spiral_test ( )

%*****************************************************************************80
%
%% FIBONACCI_SPIRAL_TEST tests FIBONACCI_SPIRAL.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    19 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../fibonacci_spiral' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FIBONACCI_SPIRAL_TEST:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test FIBONACCI_SPIRAL.\n' );

  n = 50;
  fibonacci_spiral ( n );
  filename = sprintf ( 'spiral_%d.png', n );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  n = 100;
  fibonacci_spiral ( n );
  filename = sprintf ( 'spiral_%d.png', n );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  n = 500;
  fibonacci_spiral ( n );
  filename = sprintf ( 'spiral_%d.png', n );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  n = 1000;
  fibonacci_spiral ( n );
  filename = sprintf ( 'spiral_%d.png', n );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  n = 50;
  fibonacci_spiral_connected ( n );
  filename = sprintf ( 'spiral_%d_connected.png', n );
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FIBONACCI_SPIRAL_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../fibonacci_spiral' )

  return
end
