Changeset 10822
- Timestamp:
- Dec 21, 2006, 10:32:47 AM (20 years ago)
- Location:
- trunk/psLib/test
- Files:
-
- 20 edited
-
pstap/src/pstap.h (modified) (2 diffs)
-
types/tap_psArguments_all.c (modified) (1 diff)
-
types/tap_psArray_all.c (modified) (1 diff)
-
types/tap_psBitSet_all.c (modified) (1 diff)
-
types/tap_psHash_all.c (modified) (1 diff)
-
types/tap_psListIterator.c (modified) (1 diff)
-
types/tap_psList_all.c (modified) (1 diff)
-
types/tap_psLookupTable_all.c (modified) (1 diff)
-
types/tap_psMetadataConfigParse_time.c (modified) (1 diff)
-
types/tap_psMetadataConfigRead.c (modified) (1 diff)
-
types/tap_psMetadataConfig_input.c (modified) (1 diff)
-
types/tap_psMetadataItemCompare.c (modified) (1 diff)
-
types/tap_psMetadataItemParse.c (modified) (1 diff)
-
types/tap_psMetadataIterator.c (modified) (1 diff)
-
types/tap_psMetadata_copying.c (modified) (1 diff)
-
types/tap_psMetadata_creating.c (modified) (1 diff)
-
types/tap_psMetadata_manip.c (modified) (1 diff)
-
types/tap_psMetadata_polynomials.c (modified) (1 diff)
-
types/tap_psMetadata_printing.c (modified) (1 diff)
-
types/tap_psPixels_all.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/pstap/src/pstap.h
r10818 r10822 15 15 16 16 // write a comment which is counted as a test (and swallowed by prove) 17 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__); 17 # define note(A, ...){ \ 18 fprintf(stdout, A, ## __VA_ARGS__); \ 19 fprintf(stdout, "\n[%s:%d in %s]\n", __FILE__, __LINE__, __func__); } 20 21 // write a comment which is counted as a test (and swallowed by prove) 22 # define noted(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__); 18 23 19 24 // use to test the value of a float 20 25 # define ok_float(VALUE,EXPECT,COMMENT, ...)\ 21 26 ok((fabsf((VALUE)-(EXPECT)) < FLT_EPSILON), COMMENT, ## __VA_ARGS__); 22 23 // write a comment which is counted as a test (and swallowed by prove)24 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ## __VA_ARGS__);25 27 26 28 // use to test the value of a double … … 73 75 74 76 // write a comment which is counted as a test (and swallowed by prove) 75 # define note(A, ...) _gen_result(1, __func__, __FILE__, __LINE__, A, ...); 77 // write a comment which is counted as a test (and swallowed by prove) 78 # define note(A, ...){ \ 79 fprintf(stdout, A, ...); \ 80 fprintf(stdout, "\n[%s:%d in %s]\n", __FILE__, __LINE__, __func__); } 76 81 77 82 // use to test the value of a float -
trunk/psLib/test/types/tap_psArguments_all.c
r10819 r10822 23 23 int main(void) 24 24 { 25 plan_tests( 30);25 plan_tests(27); 26 26 27 27 note("Tests for psArguments Functions"); -
trunk/psLib/test/types/tap_psArray_all.c
r10819 r10822 24 24 int main(void) 25 25 { 26 plan_tests( 34);26 plan_tests(29); 27 27 28 28 note("Tests for psArray Functions"); -
trunk/psLib/test/types/tap_psBitSet_all.c
r10819 r10822 22 22 int main(void) 23 23 { 24 plan_tests(3 4);24 plan_tests(31); 25 25 26 26 note("Tests for psBitSet Functions"); -
trunk/psLib/test/types/tap_psHash_all.c
r10819 r10822 23 23 int main(void) 24 24 { 25 plan_tests(2 9);25 plan_tests(25); 26 26 27 27 note("Tests for psHash Functions"); -
trunk/psLib/test/types/tap_psListIterator.c
r10819 r10822 72 72 int main (void) 73 73 { 74 plan_tests( 73);74 plan_tests(66); 75 75 76 76 note("psListIterator tests"); -
trunk/psLib/test/types/tap_psList_all.c
r10819 r10822 26 26 int main(void) 27 27 { 28 plan_tests(6 4);28 plan_tests(60); 29 29 30 30 note("Tests for psList Functions"); -
trunk/psLib/test/types/tap_psLookupTable_all.c
r10819 r10822 24 24 int main(void) 25 25 { 26 plan_tests( 30);26 plan_tests(28); 27 27 28 28 note("Tests for psLookupTable Functions"); -
trunk/psLib/test/types/tap_psMetadataConfigParse_time.c
r10819 r10822 7 7 int main (void) 8 8 { 9 plan_tests(4 1);9 plan_tests(40); 10 10 11 11 note("psMetadataParseConfig time format tests"); -
trunk/psLib/test/types/tap_psMetadataConfigRead.c
r10821 r10822 148 148 int main (void) 149 149 { 150 plan_tests(5 8);150 plan_tests(52); 151 151 152 152 note("psMetadataConfigRead tests"); -
trunk/psLib/test/types/tap_psMetadataConfig_input.c
r10819 r10822 25 25 int main(void) 26 26 { 27 plan_tests(3 6);27 plan_tests(33); 28 28 29 29 note("Tests for psMetadataConfig Input Functions"); -
trunk/psLib/test/types/tap_psMetadataItemCompare.c
r10819 r10822 19 19 int main (void) 20 20 { 21 plan_tests(2 4);21 plan_tests(22); 22 22 23 23 note("psMetadataItemCompare() tests"); -
trunk/psLib/test/types/tap_psMetadataItemParse.c
r10819 r10822 20 20 int main (void) 21 21 { 22 plan_tests(11 4);22 plan_tests(112); 23 23 24 24 note("psMetadataItemParse() tests"); -
trunk/psLib/test/types/tap_psMetadataIterator.c
r10819 r10822 102 102 int main (void) 103 103 { 104 plan_tests(2 55);104 plan_tests(242); 105 105 106 106 note("psMetadataIterator tests"); -
trunk/psLib/test/types/tap_psMetadata_copying.c
r10819 r10822 23 23 int main(void) 24 24 { 25 plan_tests( 40);25 plan_tests(36); 26 26 27 27 note("psMetadataCopy and psMetadataItemCopy tests"); -
trunk/psLib/test/types/tap_psMetadata_creating.c
r10819 r10822 25 25 int main(void) 26 26 { 27 plan_tests(4 6);27 plan_tests(42); 28 28 29 29 note("psMetadata & psMetadataItem Creation Functions"); -
trunk/psLib/test/types/tap_psMetadata_manip.c
r10819 r10822 23 23 int main(void) 24 24 { 25 plan_tests( 52);25 plan_tests(48); 26 26 27 27 note("psMetadataLookup, Remove, and Iterator Fxns"); -
trunk/psLib/test/types/tap_psMetadata_polynomials.c
r10819 r10822 24 24 int main(void) 25 25 { 26 plan_tests( 96);26 plan_tests(89); 27 27 28 28 note("psPolynomial(1D, 2D, 3D, & 4D)(to/from)Metadata tests"); -
trunk/psLib/test/types/tap_psMetadata_printing.c
r10821 r10822 24 24 int main(void) 25 25 { 26 plan_tests(3 3);26 plan_tests(30); 27 27 28 28 note("psMetadataPrint and psMetadataItemPrint tests"); -
trunk/psLib/test/types/tap_psPixels_all.c
r10819 r10822 23 23 int main(void) 24 24 { 25 plan_tests( 41);25 plan_tests(38); 26 26 27 27 note("Tests for psPixels Functions");
Note:
See TracChangeset
for help on using the changeset viewer.
