Changeset 3096 for trunk/psLib/test/dataManip/tst_psFunc02.c
- Timestamp:
- Jan 26, 2005, 10:41:04 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataManip/tst_psFunc02.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataManip/tst_psFunc02.c
r2730 r3096 56 56 } 57 57 58 if (tmpSpline-> domains == NULL) {59 printf("ERROR: Could not allocate psSpline1D-> domains data structure\n");58 if (tmpSpline->knots == NULL) { 59 printf("ERROR: Could not allocate psSpline1D->knots data structure\n"); 60 60 testStatus = false; 61 61 } 62 62 63 63 for (i=0;i<N+1;i++) { 64 printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]); 64 printf("psSpline1D->knots->data.F32[%d] is %f\n", i, 65 tmpSpline->knots->data.F32[i]); 65 66 } 66 67 … … 137 138 } 138 139 139 if (tmpSpline-> domains == NULL) {140 printf("ERROR: Could not allocate psSpline1D-> domains data structure\n");140 if (tmpSpline->knots == NULL) { 141 printf("ERROR: Could not allocate psSpline1D->knots data structure\n"); 141 142 testStatus = false; 142 143 } 143 144 144 145 for (i=0;i<N+1;i++) { 145 printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]); 146 printf("psSpline1D->knots->data.F32[%d] is %f\n", i, 147 tmpSpline->knots->data.F32[i]); 146 148 } 147 149 … … 191 193 } 192 194 193 if (tmpSpline-> domains == NULL) {194 printf("ERROR: Could not allocate psSpline1D-> domains data structure\n");195 if (tmpSpline->knots == NULL) { 196 printf("ERROR: Could not allocate psSpline1D->knots data structure\n"); 195 197 testStatus = false; 196 198 } 197 199 198 200 for (i=0;i<N+1;i++) { 199 printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]); 201 printf("psSpline1D->data.F32[%d] is %f\n", i, 202 tmpSpline->knots->data.F32[i]); 200 203 } 201 204 … … 272 275 } 273 276 274 if (tmpSpline-> domains == NULL) {275 printf("ERROR: Could not allocate psSpline1D-> domains data structure\n");277 if (tmpSpline->knots == NULL) { 278 printf("ERROR: Could not allocate psSpline1D->knots data structure\n"); 276 279 testStatus = false; 277 280 } 278 281 279 282 for (i=0;i<N+1;i++) { 280 printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]); 283 printf("psSpline1D->knots->data.F32[%d] is %f\n", i, 284 tmpSpline->knots->data.F32[i]); 281 285 } 282 286 … … 331 335 } 332 336 333 if (tmpSpline-> domains == NULL) {334 printf("ERROR: Could not allocate psSpline1D-> domains data structure\n");337 if (tmpSpline->knots == NULL) { 338 printf("ERROR: Could not allocate psSpline1D->knots data structure\n"); 335 339 testStatus = false; 336 340 } 337 341 338 342 for (i=0;i<N+1;i++) { 339 printf("psSpline1D->domains[%d] is %f\n", i, tmpSpline->domains[i]); 343 printf("psSpline1D->knots->data.F32[%d] is %f\n", i, 344 tmpSpline->knots->data.F32[i]); 340 345 } 341 346 psFree(bounds);
Note:
See TracChangeset
for help on using the changeset viewer.
