Changeset 21223 for trunk/psModules/test/concepts/tap_pmConceptsPhotcode.c
- Timestamp:
- Jan 29, 2009, 10:46:54 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/test/concepts/tap_pmConceptsPhotcode.c
r15986 r21223 17 17 18 18 19 // ----------------------------------------------------------------------20 // pmConceptsPhotcodeForView() tests: NULL pmConfig input21 // psString pmConceptsPhotcodeForView(pmConfig *config, pmFPAfile *file, const pmFPAview *view)22 {23 psMemId id = psMemGetId();24 pmConfig *config =pmConfigAlloc();25 pmFPAfile *file = pmFPAfileAlloc();26 pmFPAview *view = pmFPAviewAlloc(32);27 ok(NULL == pmConceptsPhotcodeForView(NULL, file, view),28 "pmConceptsPhotcodeForView(NULL, file, view) returned NULL");29 psFree(config);30 psFree(file);31 psFree(view);32 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");33 }34 35 36 // pmConceptsPhotcodeForView() tests: NULL pmConfig input37 // psString pmConceptsPhotcodeForView(pmConfig *config, pmFPAfile *file, const pmFPAview *view)38 {39 psMemId id = psMemGetId();40 pmConfig *config =pmConfigAlloc();41 pmFPAfile *file = pmFPAfileAlloc();42 pmFPAview *view = pmFPAviewAlloc(32);43 ok(NULL == pmConceptsPhotcodeForView(NULL, file, view),44 "pmConceptsPhotcodeForView(NULL, file, view) returned NULL");45 psFree(config);46 psFree(file);47 psFree(view);48 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");49 }50 51 52 19 // pmConceptsPhotcodeForView() tests: NULL pmFPAfile input 53 20 // psString pmConceptsPhotcodeForView(pmConfig *config, pmFPAfile *file, const pmFPAview *view) … … 57 24 pmFPAfile *file = pmFPAfileAlloc(); 58 25 pmFPAview *view = pmFPAviewAlloc(32); 59 ok(NULL == pmConceptsPhotcodeForView( config,NULL, view),26 ok(NULL == pmConceptsPhotcodeForView(NULL, view), 60 27 "pmConceptsPhotcodeForView(config, NULL, view) returned NULL"); 61 28 psFree(config); … … 73 40 pmFPAfile *file = pmFPAfileAlloc(); 74 41 pmFPAview *view = pmFPAviewAlloc(32); 75 ok(NULL == pmConceptsPhotcodeForView( config,file, NULL),42 ok(NULL == pmConceptsPhotcodeForView(file, NULL), 76 43 "pmConceptsPhotcodeForView(config, file, NULL) returned NULL"); 77 44 psFree(config); … … 104 71 psString goodPhotcode = pmFPAfileNameFromRule(rule, file, view); 105 72 106 psString testPhotcode = pmConceptsPhotcodeForView( config,file, view);73 psString testPhotcode = pmConceptsPhotcodeForView(file, view); 107 74 ok(testPhotcode, "pmConceptsPhotcodeForView(config, file, view) returned non-NULL"); 108 75 ok(!strcmp(goodPhotcode, testPhotcode), "pmConceptsPhotcodeForView() produced the correct string");
Note:
See TracChangeset
for help on using the changeset viewer.
