function fern_test ( )

%*****************************************************************************80
%
%% FERN_TEST tests FERN.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    18 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../fern' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FERN_TEST:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test FERN.\n' );

  point_num = 10000;
  fern ( point_num );
  filename = 'fern_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FERN_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../fern' )

  return
end
