Changeset 3976 for trunk/psLib/test/astronomy/tst_psAstrometry01.c
- Timestamp:
- May 18, 2005, 7:03:48 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psAstrometry01.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psAstrometry01.c
r3883 r3976 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-05-1 1 22:00:35$7 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-05-19 05:03:48 $ 9 9 * 10 10 * XXX: Must test … … 719 719 psPlaneTransform *trans3 = NULL; 720 720 setCoeffs(trans1, trans2); 721 trans3 = psPlaneTransformCombine(NULL, trans1, trans2); 721 trans3 = psPlaneTransformCombine(NULL, trans1, trans2,psRegionSet(NAN,NAN,NAN,NAN),0); 722 //XXX: the last two parameters are bogus. Needs to change. -rdd 722 723 723 724 if (trans3 == NULL) { … … 749 750 printf("----------------------------------------------------------------------------------\n"); 750 751 printf("Calling psPlaneTransformCombine with NULL trans1. Should generate error and return NULL.\n"); 751 trans3 = psPlaneTransformCombine(NULL, NULL, trans2 );752 trans3 = psPlaneTransformCombine(NULL, NULL, trans2, psRegionSet(0,0,0,0), 10); 752 753 if (trans3 != NULL) { 753 754 printf("TEST ERROR: psPlaneTransformCombine() returned a non-NULL psPlaneTransform.\n"); … … 758 759 printf("----------------------------------------------------------------------------------\n"); 759 760 printf("Calling psPlaneTransformCombine with NULL trans2. Should generate error and return NULL.\n"); 760 trans3 = psPlaneTransformCombine(NULL, trans1, NULL );761 trans3 = psPlaneTransformCombine(NULL, trans1, NULL, psRegionSet(0,0,0,0), 10); 761 762 if (trans3 != NULL) { 762 763 printf("TEST ERROR: psPlaneTransformCombine() returned a non-NULL psPlaneTransform.\n"); … … 908 909 psPlaneTransform *trans = psPlaneTransformAlloc(2, 2); 909 910 psPlaneTransform *transOut = NULL; 910 psRegion *myRegion = psRegionAlloc(1.0, 5.0, 1.0, 5.0);911 psRegion myRegion = psRegionSet(1.0, 5.0, 1.0, 5.0); 911 912 912 913 // … … 931 932 } 932 933 933 printf("----------------------------------------------------------------------------------\n");934 printf("Calling psPlaneTransformInvert with NULL psRegion. Should generate error and return NULL.\n");935 transOut = psPlaneTransformInvert(NULL, trans, NULL, 10);936 if (transOut != NULL) {937 printf("TEST ERROR: psPlaneTransformInvert() returned a non-NULL psPlaneTransform.\n");938 testStatus = false;939 psFree(transOut);940 }941 934 printf("----------------------------------------------------------------------------------\n"); 942 935 printf("Calling psPlaneTransformInvert with zero nSamples. Should generate error and return NULL.\n"); … … 988 981 989 982 psFree(trans); 990 psFree(myRegion);991 983 992 984 fflush(stdout);
Note:
See TracChangeset
for help on using the changeset viewer.
