IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12389


Ignore:
Timestamp:
Mar 9, 2007, 12:52:13 PM (19 years ago)
Author:
gusciora
Message:

Looks like psVectorInit was changed:

Can no longer initialize an unsigned int with a -1.
Can no longer init a signed int with the maximum unsigned int values.
Can no longer init complex types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/mathtypes/tap_psVector.c

    r12198 r12389  
    88int main (void)
    99{
    10     plan_tests(215);
     10    plan_tests(211);
    1111
    1212    diag("psVectorAlloc() tests");
     
    239239    {
    240240        psVector *vec = psVectorAlloc(1, PS_TYPE_U64);
    241         ok(psVectorInit(vec, -1), "U64 Case");
     241        ok(psVectorInit(vec, PS_MIN_U64), "U64 Case");
    242242        psFree(vec);
    243243    }
     
    264264        // XXX is this test ok?
    265265        psVector *vec = psVectorAlloc(1, PS_TYPE_S64);
    266         ok(psVectorInit(vec, PS_MAX_U64), "S64 Case");
     266        ok(psVectorInit(vec, PS_MAX_S64), "S64 Case");
    267267        psFree(vec);
    268268    }
     
    280280    }
    281281
    282     {
     282    // XXX: Looks like the C32 case was removed from psVectorInit().
     283    if (0) {
    283284        psVector *vec = psVectorAlloc(1, PS_TYPE_C32);
    284285        psC32 vC32 = 1.23 + 1.19I;
     
    287288    }
    288289
    289     {
     290    // XXX: Looks like the C64 case was removed from psVectorInit().
     291    if (0) {
    290292        psVector *vec = psVectorAlloc(1, PS_TYPE_C64);
    291293        psC64 vC64 = 2.13 + 2.31I;
     
    455457    // Must test complex types separately from macro
    456458
    457     {
     459    // XXX: Looks like the C32 case was removed from psVectorInit().
     460    if (0) {
    458461        psVector *vec = psVectorAlloc(1, PS_TYPE_C32);
    459462        vec->n = 1;
     
    469472    }
    470473
    471     {
     474    // XXX: Looks like the C64 case was removed from psVectorInit().
     475    if (0) {
    472476        psVector *vec = psVectorAlloc(1, PS_TYPE_C64);
    473477        vec->n = 1;
Note: See TracChangeset for help on using the changeset viewer.