function pi_spigot_test ( )

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

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pi_spigot_test:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test pi_spigot.\n' );

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

  rmpath ( '../pi_spigot' )

  return
end
