IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 892


Ignore:
Timestamp:
Jun 6, 2004, 3:02:28 PM (22 years ago)
Author:
gusciora
Message:

...

Location:
trunk/psLib/test/sysUtils
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/tst_psHash02.c

    r881 r892  
    6666        i++;
    6767    }
     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    }
    6873
    6974    printFooter(stdout,
  • trunk/psLib/test/sysUtils/tst_psHash03.c

    r875 r892  
    6666    int testStatus      = true;
    6767    int i               = 0;
     68    int TotalKeys       = 0;
    6869    ID *id = NULL;
    6970    char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL};
     
    8586        i++;
    8687    }
     88    TotalKeys = i - 1;
    8789
    88     i = 0;
    89     while (myKeys[i] != NULL) {
     90    i = TotalKeys;
     91    while (i >= 0) {
     92
    9093        id = psHashLookup(myHashTable, myKeys[i]);
    9194        if (0 != strcmp(myData[i], id->name)) {
     
    9396                    __func__, myKeys[i], id->name, myData[i]);
    9497        }
    95         i++;
     98        i--;
    9699    }
    97100
  • trunk/psLib/test/sysUtils/verified/tst_psHash03.stdout

    r588 r892  
    55\----------------------------------------------------------------------------------/
    66
     7psHashLookup(ENTRY03)
     8psHashLookup(ENTRY02)
     9psHashLookup(ENTRY01)
     10psHashLookup(ENTRY00)
    711
    812---> TESTPOINT PASSED (psHash functions{psHashRemove()} | tst_psHash03.c)
Note: See TracChangeset for help on using the changeset viewer.