function shepard_interp_1d_test ( )

%*****************************************************************************80
%
%% shepard_interp_1d_test tests shepard_interp_1d.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    25 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../r8lib' )
  addpath ( '../shepard_interp_1d' );
  addpath ( '../test_interp' )

  p_test = [ 0.0, 1.0, 2.0, 4.0, 8.0 ];

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'shepard_interp_1d_test:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test shepard_interp_1d.\n' );
  fprintf ( 1, '  This test needs the TEST_INTERP library.\n' );

  shepard_basis_1d_test ( );

  shepard_value_1d_test ( );

  prob_num = p00_prob_num ( );

  for prob = 1 : prob_num

    for i = 1 : 5
      p = p_test(i);
      shepard_interp_1d_test01 ( prob, p );
    end

  end

  prob = 7;
  for i = 1 : 5
    p = p_test(i);
    shepard_interp_1d_test02 ( prob, p );
  end  
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'shepard_interp_1d_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../r8lib' )
  rmpath ( '../shepard_interp_1d' );
  rmpath ( '../test_interp' )

  return
end
