Index: trunk/psLib/test/math/tap_psPolynomialEval1D.c
===================================================================
--- trunk/psLib/test/math/tap_psPolynomialEval1D.c	(revision 11320)
+++ trunk/psLib/test/math/tap_psPolynomialEval1D.c	(revision 11374)
@@ -1,9 +1,9 @@
-/** tst_psFunc08.c
+/**
 *
 *  This test driver will exercise the psPolynomialXDEval functions for both
 *  ORD and CHEB type polynomials.
 *
-*  @version  $Revision: 1.2 $  $Name: not supported by cvs2svn $
-*  @date  $Date: 2006-12-15 00:41:49 $
+*  @version  $Revision: 1.3 $  $Name: not supported by cvs2svn $
+*  @date  $Date: 2007-01-29 21:32:50 $
 *
 *  XXX: Probably should test single- and multi-dimensional polynomials in
@@ -25,5 +25,4 @@
 #define TESTPOINTS   5
 #define ERROR_TOL    0.001
-#define VERBOSE 0
 
 psF32 poly1DCoeff[TERMS]        = { -4.3, 2.3, -3.2, 1.9};
@@ -45,7 +44,5 @@
     psLogSetFormat("HLNM");
     psLogSetLevel(PS_LOG_INFO);
-
     plan_tests(24);
-    diag("psPolynomial1DEval() tests");
 
     // Allocate and evaluate an ordinary polynomial structure
@@ -54,5 +51,4 @@
 
         // Allocate polynomial structure
-        diag("Allocate a 1D polynomial with psPolynomial1DAlloc()");
         psPolynomial1D* polyOrd = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, TERMS-1);
         ok(polyOrd != NULL, "Ordinary psPolynomial1D successfully allocated");
@@ -67,13 +63,10 @@
 
         // Evaluate test points and verify results
-        psBool errorFlag = false;
+        bool errorFlag = false;
         for(psS32 i = 0; i < TESTPOINTS; i++)
         {
             psF64 result = psPolynomial1DEval(polyOrd,poly1DXValue[i]);
-            if(fabs(poly1DXResult[i]-result) > ERROR_TOL ) {
-                if (VERBOSE) {
-                    psError(PS_ERR_UNKNOWN,true,"Evaluated value %g not as expected %g",
-                            result, poly1DXResult[i]);
-                }
+            if (fabs(poly1DXResult[i]-result) > ERROR_TOL ) {
+                diag("Evaluated value %g not as expected %g", result, poly1DXResult[i]);
                 errorFlag = true;
             }
@@ -88,7 +81,6 @@
     // Allocate Cheby polynomial structure
     {
-        psBool errorFlag = false;
-        psMemId id = psMemGetId();
-        diag("Allocate a 1D polynomial with psPolynomial1DAlloc()");
+        bool errorFlag = false;
+        psMemId id = psMemGetId();
         psPolynomial1D*  polyCheb = psPolynomial1DAlloc(PS_POLYNOMIAL_CHEB, TERMS-1);
         ok(polyCheb != NULL, "Chebyshev psPolynomial1D successfully allocated");
@@ -105,9 +97,6 @@
         {
             psF64 resultCheb = psPolynomial1DEval(polyCheb,poly1DXChebValue[i]);
-            if(fabs(poly1DXChebResult[i]-resultCheb) > ERROR_TOL ) {
-                if (VERBOSE) {
-                    psError(PS_ERR_UNKNOWN,true,"Evaluated value %g not as expected %g",
-                            resultCheb, poly1DXChebResult[i]);
-                }
+            if (fabs(poly1DXChebResult[i]-resultCheb) > ERROR_TOL ) {
+                diag("Evaluated value %g not as expected %g", resultCheb, poly1DXChebResult[i]);
                 errorFlag = true;
             }
@@ -121,5 +110,4 @@
     // Allocate polynomial with unallowable type
     {
-        diag("Allocate a 1D polynomial with an unallowed type");
         psMemId id = psMemGetId();
         psPolynomial1D* polyOrd = psPolynomial1DAlloc(99, TERMS-1);
@@ -127,5 +115,4 @@
         skip_start(polyOrd!=NULL, 1, "Skipping tests because psPolynomial1DAlloc() failed");
 
-        diag("Attempt to evaluate an 1D polynomial with an unallowed type");
         // Attempt to evaluation invalid polynomial type
         psF64 result = psPolynomial1DEval(polyOrd, 0.0);
@@ -139,5 +126,4 @@
     // Allocate polynomial, test the psPolynomial1DEvalVector() routines
     {
-        diag("Test psPolynomial1DEvalVector(), ordinary polynomials");
         psMemId id = psMemGetId();
         psPolynomial1D* polyOrd = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, TERMS-1);
@@ -166,12 +152,10 @@
 
         // Verify the results
-        psBool errorFlag = false;
-        for(psS32 i = 0; i < TESTPOINTS; i++)
-        {
-            if(fabs(poly1DXResult[i]-outputOrd->data.F64[i]) > ERROR_TOL) {
-                if (VERBOSE) {
-                    psError(PS_ERR_UNKNOWN,true,"Result[%d] %lg not equal to expected %lg",
-                            i, outputOrd->data.F64[i], poly1DXResult[i]);
-                }
+        bool errorFlag = false;
+        for(psS32 i = 0; i < TESTPOINTS; i++)
+        {
+            if (fabs(poly1DXResult[i]-outputOrd->data.F64[i]) > ERROR_TOL) {
+                diag("Result[%d] %lg not equal to expected %lg",
+                     i, outputOrd->data.F64[i], poly1DXResult[i]);
                 errorFlag = TRUE;
             }
@@ -199,5 +183,4 @@
     // Allocate polynomial, test the psPolynomial1DEvalVector() routines (Chebyshev)
     {
-        diag("Test psPolynomial1DEvalVector(), Cheby polynomials");
         psMemId id = psMemGetId();
         psPolynomial1D* polyCheb = psPolynomial1DAlloc(PS_POLYNOMIAL_CHEB, TERMS-1);
@@ -226,12 +209,10 @@
 
         // Verify the results
-        psBool errorFlag = false;
-        for(psS32 i = 0; i < TESTPOINTS; i++)
-        {
-            if(fabs(poly1DXChebResult[i]-outputCheb->data.F64[i]) > ERROR_TOL) {
-                if (VERBOSE) {
-                    psError(PS_ERR_UNKNOWN,true,"ResultCheb[%d] %lg not equal to expected %lg",
-                            i, outputCheb->data.F64[i], poly1DXChebResult[i]);
-                }
+        bool errorFlag = false;
+        for(psS32 i = 0; i < TESTPOINTS; i++)
+        {
+            if (fabs(poly1DXChebResult[i]-outputCheb->data.F64[i]) > ERROR_TOL) {
+                diag("ResultCheb[%d] %lg not equal to expected %lg",
+                     i, outputCheb->data.F64[i], poly1DXChebResult[i]);
                 errorFlag = TRUE;
             }
