Index: trunk/psLib/test/math/tst_psMinimize04b.c
===================================================================
--- trunk/psLib/test/math/tst_psMinimize04b.c	(revision 4973)
+++ trunk/psLib/test/math/tst_psMinimize04b.c	(revision 4995)
@@ -1,4 +1,6 @@
 /*****************************************************************************
     This routine must ensure that the psVectorFitPolynomial1D works correctly.
+ 
+    We use Chebyshev polynomials here.
  *****************************************************************************/
 #include <stdio.h>
@@ -52,5 +54,5 @@
                             "psVectorFitPolynomial1D(): CHEB, equal errors in yErr");
 
-    psVectorFitPolynomial1D(myPoly, x, y, yErr);
+    psVectorFitPolynomial1D(myPoly, NULL, 0, y, yErr, x);
 
     //  Remove for testing since print out differs from platforms
@@ -121,5 +123,5 @@
                             "psVectorFitPolynomial1D(): CHEB, yErr is NULL");
 
-    psVectorFitPolynomial1D(myPoly, x, y, NULL);
+    psVectorFitPolynomial1D(myPoly, NULL, 0, y, NULL, x);
 
     // We don't test the first or last few data items.
@@ -184,5 +186,5 @@
                             "psVectorFitPolynomial1D(): CHEB, x, yErr is NULL");
 
-    psVectorFitPolynomial1D(myPoly, NULL, y, NULL);
+    psVectorFitPolynomial1D(myPoly, NULL, 0, y, NULL, NULL);
     //    psVectorFitPolynomial1D(myPoly, x, y, NULL);
 
@@ -232,5 +234,5 @@
 
     psLogMsg(__func__,PS_LOG_INFO,"Following should generate an error for null arguments.");
-    myPoly = psVectorFitPolynomial1D(NULL, NULL, NULL, NULL);
+    psVectorFitPolynomial1D(myPoly, NULL, 0, NULL, NULL, NULL);
     if (myPoly != NULL) {
         printf("ERROR: psVectorFitPolynomial1D() returned a non-NULL polynomial.\n");
