IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12356


Ignore:
Timestamp:
Mar 8, 2007, 3:41:22 PM (19 years ago)
Author:
jhoblitt
Message:

cleanups
fix test count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/db/tap_psDB.c

    r12353 r12356  
    66 *  @author Joshua Hoblitt, University of Hawaii
    77 *
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-03-09 01:37:55 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-03-09 01:41:22 $
    1010 *
    1111 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3333#endif
    3434
    35     plan_tests(2);
     35    plan_tests(25 + 1);
    3636
    3737    // see if we can open a db connection at all
     
    155155            psArray *column = psDBSelectColumn(dbh, "horse", "color", 42);
    156156            ok(column, "psDBSelectColumn() - select");
    157             ok(column->n == 3, "psDBSelectColumn() - number of elements");
     157            ok(psArrayLength(column) == 3, "psDBSelectColumn() - number of elements");
    158158
    159159            for (long i = 0; i < column->n; i++) {
     
    168168            psVector *column = psDBSelectColumnNum(dbh, "yak", "hair", PS_TYPE_F32, 42);
    169169            ok(column, "psDBSelectColumnNum() - select");
    170             ok(column->n == 2, "psDBSelectColumnNum() - number of elements");
     170            ok(psVectorLength(column) == 2, "psDBSelectColumnNum() - number of elements");
    171171
    172172            for (long i = 0; i < column->n; i++) {
     
    187187            psArray *resultSet = psDBSelectRows(dbh, "horse", md, 0);
    188188            ok(resultSet, "psDBSelectRows() - select");
    189             ok(resultSet->n == 1, "psDBSelectRows() - number of rows");
     189            ok(psArrayLength(resultSet) == 1, "psDBSelectRows() - number of rows");
    190190
    191191            psFree(md);
     
    210210            psArray *resultSet = psDBDumpRows(dbh, "horse");
    211211            ok(resultSet, "psDBDumpRows() - dump");
    212             ok(resultSet->n == 3, "psDBDumpRows() - number of rows");
     212            ok(psArrayLength(resultSet) == 3, "psDBDumpRows() - number of rows");
    213213            psFree(resultSet);
    214214        }
Note: See TracChangeset for help on using the changeset viewer.