- Timestamp:
- Aug 15, 2023, 4:59:00 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/psLib/test/astro/tap_psCoord.c
r13623 r42493 48 48 { 49 49 psMemId id = psMemGetId(); 50 psPlaneTransform *myPT = psPlaneTransformAlloc(ORDER_X, ORDER_Y );50 psPlaneTransform *myPT = psPlaneTransformAlloc(ORDER_X, ORDER_Y, PS_POLYNOMIAL_ORD); 51 51 ok(myPT != NULL, "psPlaneTransformAlloc() returned non-NULL"); 52 52 skip_start(myPT == NULL, 4, "Skipping tests because psPlaneTransformAlloc() returned NULL"); … … 59 59 // Attempt to specify negative x order and verify NULL returned and 60 60 // errror message generated 61 myPT = psPlaneTransformAlloc(-1, 1 );61 myPT = psPlaneTransformAlloc(-1, 1, PS_POLYNOMIAL_ORD); 62 62 ok(myPT == NULL, "psPlaneTransformAlloc(-1, 1) returned NULL"); 63 63 psFree(myPT); 64 64 65 myPT = psPlaneTransformAlloc(1, -1 );65 myPT = psPlaneTransformAlloc(1, -1, PS_POLYNOMIAL_ORD); 66 66 ok(myPT == NULL, "psPlaneTransformAlloc(1, -1) returned NULL"); 67 67 psFree(myPT); … … 110 110 ok(in != NULL, "psPlaneAlloc() returned non-NULL"); 111 111 skip_start(in == NULL, 2, "Skipping tests because psPlaneAlloc() returned NULL"); 112 psPlaneTransform* pt = psPlaneTransformAlloc(2, 2);112 psPlaneTransform* pt = psPlaneTransformAlloc(2, 2, PS_POLYNOMIAL_ORD); 113 113 ok(pt != NULL, "psPlaneTransformAlloc() returned non-NULL"); 114 114 skip_start(pt == NULL, 1, "Skipping tests because psPlaneTransformAlloc() returned NULL"); … … 169 169 psMemId id = psMemGetId(); 170 170 psPlane *in = psPlaneAlloc(); 171 psPlaneTransform *pt = psPlaneTransformAlloc(2, 2);171 psPlaneTransform *pt = psPlaneTransformAlloc(2, 2, PS_POLYNOMIAL_ORD); 172 172 psFree(pt->x); 173 173 pt->x = NULL; … … 184 184 psMemId id = psMemGetId(); 185 185 psPlane* in = psPlaneAlloc(); 186 psPlaneTransform* pt = psPlaneTransformAlloc(2,2 );186 psPlaneTransform* pt = psPlaneTransformAlloc(2,2, PS_POLYNOMIAL_ORD); 187 187 psFree(pt->y); 188 188 pt->y = NULL; … … 198 198 { 199 199 psMemId id = psMemGetId(); 200 psPlaneTransform* pt = psPlaneTransformAlloc(2,2 );200 psPlaneTransform* pt = psPlaneTransformAlloc(2,2, PS_POLYNOMIAL_ORD); 201 201 psPlane *tmpPL = psPlaneTransformApply(NULL, pt, NULL); 202 202 ok(tmpPL == NULL, "psPlaneTransformApply(NULL, pt, NULL) did not return NULL"); … … 314 314 { 315 315 psMemId id = psMemGetId(); 316 psPlaneTransform *trans = psPlaneTransformAlloc(1, 3 );316 psPlaneTransform *trans = psPlaneTransformAlloc(1, 3, PS_POLYNOMIAL_ORD); 317 317 psPixels *output = psPixelsTransform(NULL, NULL, trans); 318 318 ok(output == NULL, "psPixelsTransform(NULL, NULL, trans) returned NULL"); … … 342 342 input->data[1].x = 1.0; 343 343 input->data[1].y = 6.0; 344 psPlaneTransform *trans = psPlaneTransformAlloc(1, 3 );344 psPlaneTransform *trans = psPlaneTransformAlloc(1, 3, PS_POLYNOMIAL_ORD); 345 345 trans->x->coeff[0][0] = 0; 346 346 trans->x->coeff[1][0] = 1.0;
Note:
See TracChangeset
for help on using the changeset viewer.
