function ccff_exactness_test ( )

%*****************************************************************************80
%
%% CCFF_EXACTNESS_TEST tests exactness of CCFF rules for the Legendre integral.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    25 May 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'CCFF_EXACTNESS_TEST\n' );
  fprintf ( 1, '  Test exactness of CCFF quadrature rules for the Legendre integral.\n' );
  fprintf ( 1, '  Density function rho(x) = 1.\n' );
  fprintf ( 1, '  Region: -1 <= x <= +1.\n' );
  fprintf ( 1, '  Exactness: N   for N odd.\n' );
  fprintf ( 1, '             N-1 for N even.\n' );

  ell = 1.0;

  for n = 1 : 5

    [ x, w ] = ccff ( n );

    if ( mod ( n, 2 ) == 0 )
      p_max = n;
    else
      p_max = n + 1;
    end

    legendre_exactness_test ( n, x, w, p_max );

  end

  return
end
