function spquad_test ( )

%*****************************************************************************80
%
%% spquad_test tests spquad.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    19 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../spquad' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'spquad_test\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test spquad.\n' );

  d = 2;
  maxk = 5;
  spquad_test01 ( d, maxk );

  d = 10;
  maxk = 4;
  spquad_test01 ( d, maxk );

  d = 20;
  maxk = 3;
  spquad_test01 ( d, maxk );

  d = 30;
  maxk = 2;
  spquad_test01 ( d, maxk );

  d = 40;
  maxk = 2;
  spquad_test01 ( d, maxk );

  d = 50;
  maxk = 2;
  spquad_test01 ( d, maxk );

  spquad_test02 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'spquad_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../spquad' );

  return
end
