Changeset 11663
- Timestamp:
- Feb 5, 2007, 6:11:54 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tap_psCoord01.c (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tap_psCoord01.c
r11180 r11663 12 12 * values were obtained, and they nearly all fail now. 13 13 * 14 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2007-0 1-19 20:42:21$16 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $17 * @date $Date: 2007-0 1-19 20:42:21$14 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2007-02-06 04:11:54 $ 16 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2007-02-06 04:11:54 $ 18 18 * 19 19 * Copyright 2005 Maui High Performance Computing Center, Univ. of Hawaii … … 173 173 myProjection->Ys = projectionTestPoint[i][5]; 174 174 175 psPlane *out = psProject( in, myProjection);175 psPlane *out = psProject(NULL, in, myProjection); 176 176 if(out == NULL) { 177 177 diag("psProject() returned NULL"); 178 178 errorFlag = true; 179 179 } else { 180 inTest = psDeproject( out, myProjection);180 inTest = psDeproject(NULL, out, myProjection); 181 181 if(fabs(out->x - projectionTanExpected[i][0]) > ERROR_TOL) { 182 182 diag("TEST ERROR: Testpoint %d psPlane->x = %lg expected %lg", … … 230 230 231 231 // Perform deprojection 232 psSphere *out = psDeproject( in, myProjection);232 psSphere *out = psDeproject(NULL, in, myProjection); 233 233 234 234 // Verify output is not NULL … … 278 278 279 279 // Perform projection 280 psPlane *out = psProject( in, myProjection);280 psPlane *out = psProject(NULL, in, myProjection); 281 281 282 282 // Verify output not NULL … … 326 326 327 327 // Perform deprojection 328 psSphere *out = psDeproject( in, myProjection);328 psSphere *out = psDeproject(NULL, in, myProjection); 329 329 330 330 // Verify output is not NULL … … 374 374 375 375 // Perform projection 376 psPlane *out = psProject( in, myProjection);376 psPlane *out = psProject(NULL, in, myProjection); 377 377 378 378 // Verify output not NULL … … 422 422 423 423 // Perform deprojection 424 psSphere *out = psDeproject( in, myProjection);424 psSphere *out = psDeproject(NULL, in, myProjection); 425 425 426 426 // Verify output is not NULL … … 470 470 471 471 // Perform projection 472 psPlane *out = psProject( in, myProjection);472 psPlane *out = psProject(NULL, in, myProjection); 473 473 474 474 // Verify output not NULL … … 518 518 519 519 // Perform deprojection 520 psSphere *out = psDeproject( in, myProjection);520 psSphere *out = psDeproject(NULL, in, myProjection); 521 521 522 522 // Verify output is not NULL … … 553 553 psMemId id = psMemGetId(); 554 554 psProjection *myProjection = psProjectionAlloc(0.0,0.0,1.0,1.0,PS_PROJ_TAN); 555 psPlane *out = psProject(NULL, myProjection);556 ok(out == NULL, "psProject(NULL, xxx) returned NULL");555 psPlane *out = psProject(NULL, NULL, myProjection); 556 ok(out == NULL, "psProject(NULL, NULL, xxx) returned NULL"); 557 557 psFree(myProjection); 558 558 psFree(out); … … 567 567 psMemId id = psMemGetId(); 568 568 psSphere *in = psSphereAlloc(); 569 psPlane *out = psProject( in, NULL);570 ok(out == NULL, "psProject( in, NULL) returned NULL");569 psPlane *out = psProject(NULL, in, NULL); 570 ok(out == NULL, "psProject(NULL, in, NULL) returned NULL"); 571 571 psFree(in); 572 572 psFree(out); … … 583 583 myProjection->type = PS_PROJ_NTYPE; 584 584 psSphere *in = psSphereAlloc(); 585 psPlane *out = psProject( in,myProjection);586 ok(out == NULL, "psProject( in, out) returned NULL with unallowed projection type");585 psPlane *out = psProject(NULL, in,myProjection); 586 ok(out == NULL, "psProject(NULL, in, out) returned NULL with unallowed projection type"); 587 587 psFree(myProjection); 588 588 psFree(in); … … 601 601 { 602 602 psProjection *myProjection = psProjectionAlloc(0.0,0.0,1.0,1.0,PS_PROJ_TAN); 603 psSphere *out = psDeproject(NULL, myProjection);604 ok(out == NULL, "psDeproject(NULL, myProjection) returned NULL");603 psSphere *out = psDeproject(NULL, NULL, myProjection); 604 ok(out == NULL, "psDeproject(NULL, NULL, myProjection) returned NULL"); 605 605 psFree(myProjection); 606 606 psFree(out); … … 614 614 psMemId id = psMemGetId(); 615 615 psPlane *in = psPlaneAlloc(); 616 psSphere *out = psDeproject( in, NULL);617 ok(out == NULL, "psDeproject( in, NULL) returned NULL");616 psSphere *out = psDeproject(NULL, in, NULL); 617 ok(out == NULL, "psDeproject(NULL, in, NULL) returned NULL"); 618 618 psFree(in); 619 619 psFree(out); … … 629 629 psPlane *in = psPlaneAlloc(); 630 630 myProjection->type = PS_PROJ_NTYPE; 631 psSphere *out = psDeproject( in,myProjection);632 ok(out == NULL, "psDeproject( in,myProjection) returned NULL with unallowed projection type");631 psSphere *out = psDeproject(NULL, in,myProjection); 632 ok(out == NULL, "psDeproject(NULL, in,myProjection) returned NULL with unallowed projection type"); 633 633 psFree(myProjection); 634 634 psFree(in);
Note:
See TracChangeset
for help on using the changeset viewer.
