function e_spigot_test ( )

%*****************************************************************************80
%
%% e_spigot_test tests e_spigot.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    25 February 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../e_spigot' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'e_spigot_test:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test e_spigot.\n' );

  n = 10;
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Print %d decimal digits of e:\n', n );
  fprintf ( 1, '\n' );
  e_spigot ( n );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'e_spigot_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../e_spigot' )

  return
end
