Changeset 892
- Timestamp:
- Jun 6, 2004, 3:02:28 PM (22 years ago)
- Location:
- trunk/psLib/test/sysUtils
- Files:
-
- 3 edited
-
tst_psHash02.c (modified) (1 diff)
-
tst_psHash03.c (modified) (3 diffs)
-
verified/tst_psHash03.stdout (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/tst_psHash02.c
r881 r892 66 66 i++; 67 67 } 68 id = psHashLookup(myHashTable, "BogusKey"); 69 if (id != NULL) { 70 fprintf(stderr, "%s: Hash table entry for key %s was not NULL.\n", 71 __func__, "BogusKey"); 72 } 68 73 69 74 printFooter(stdout, -
trunk/psLib/test/sysUtils/tst_psHash03.c
r875 r892 66 66 int testStatus = true; 67 67 int i = 0; 68 int TotalKeys = 0; 68 69 ID *id = NULL; 69 70 char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL}; … … 85 86 i++; 86 87 } 88 TotalKeys = i - 1; 87 89 88 i = 0; 89 while (myKeys[i] != NULL) { 90 i = TotalKeys; 91 while (i >= 0) { 92 90 93 id = psHashLookup(myHashTable, myKeys[i]); 91 94 if (0 != strcmp(myData[i], id->name)) { … … 93 96 __func__, myKeys[i], id->name, myData[i]); 94 97 } 95 i ++;98 i--; 96 99 } 97 100 -
trunk/psLib/test/sysUtils/verified/tst_psHash03.stdout
r588 r892 5 5 \----------------------------------------------------------------------------------/ 6 6 7 psHashLookup(ENTRY03) 8 psHashLookup(ENTRY02) 9 psHashLookup(ENTRY01) 10 psHashLookup(ENTRY00) 7 11 8 12 ---> TESTPOINT PASSED (psHash functions{psHashRemove()} | tst_psHash03.c)
Note:
See TracChangeset
for help on using the changeset viewer.
