Changeset 3330 for trunk/psLib/test/dataIO/tst_psLookupTable_01.c
- Timestamp:
- Feb 25, 2005, 9:55:01 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/dataIO/tst_psLookupTable_01.c (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/dataIO/tst_psLookupTable_01.c
r3284 r3330 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-02- 18 19:46:40$14 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-25 19:55:01 $ 16 16 * 17 17 * Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii … … 168 168 169 169 // Allocate lookup table with valid parameters 170 table1 = psLookupTableAlloc(" tableF32.dat", tableF32_validFrom, tableF32_validTo);170 table1 = psLookupTableAlloc("verified/tableF32.dat", tableF32_validFrom, tableF32_validTo); 171 171 if(table1 == NULL) { 172 172 psError(PS_ERR_UNKNOWN,true,"Null lookup table generated from valid parameters"); 173 173 return 1; 174 174 } 175 if(strcmp(table1->fileName," tableF32.dat") != 0) {175 if(strcmp(table1->fileName,"verified/tableF32.dat") != 0) { 176 176 psError(PS_ERR_UNKNOWN,true,"File name not properly stored in psLookupTable structure."); 177 177 return 2; … … 201 201 202 202 // Allocate table using table with psU8 index and valid types and index-values 203 table1 = psLookupTableAlloc(" tableU8.dat", 0, 100.5);203 table1 = psLookupTableAlloc("verified/tableU8.dat", 0, 100.5); 204 204 if(table1 == NULL) { 205 205 psError(PS_ERR_UNKNOWN,true,"Unable to allocate table with tableU8.dat"); … … 274 274 275 275 // Allocate table using table with psS32 index and valid types and index-values 276 table1 = psLookupTableAlloc(" tableS32.dat", -110, 1000.5);276 table1 = psLookupTableAlloc("verified/tableS32.dat", -110, 1000.5); 277 277 if(table1 == NULL) { 278 278 psError(PS_ERR_UNKNOWN,true,"Unable to allocate table with tableS32.dat"); … … 299 299 300 300 // Allocate table using table with psF32 index and valid types and index-values 301 table1 = psLookupTableAlloc(" tableF32.dat", -1100, 5500.5);301 table1 = psLookupTableAlloc("verified/tableF32.dat", -1100, 5500.5); 302 302 if(table1 == NULL) { 303 303 psError(PS_ERR_UNKNOWN,true,"Unable to allocate table with tableF32.dat"); … … 325 325 // Allocate table using psU8 index but with unsorted rows and verify the list is 326 326 // sorted properly after being read 327 table1 = psLookupTableAlloc(" table10.dat",1,2);327 table1 = psLookupTableAlloc("verified/table10.dat",1,2); 328 328 if(table1 == NULL) { 329 329 psError(PS_ERR_UNKNOWN,true,"Unable to allocate table with table10.dat"); … … 397 397 398 398 // Allocate table using table with invalid type in type row but valid index-values 399 table1 = psLookupTableAlloc(" table2.dat",0,99.99);399 table1 = psLookupTableAlloc("verified/table2.dat",0,99.99); 400 400 if(table1 == NULL) { 401 401 psError(PS_ERR_UNKNOWN,true,"Unable to allocate table with table2.dat"); … … 411 411 412 412 // Allocate table using table with invalid value 413 table1 = psLookupTableAlloc(" table3.dat",0,75.0);413 table1 = psLookupTableAlloc("verified/table3.dat",0,75.0); 414 414 if(table1 == NULL) { 415 415 psError(PS_ERR_UNKNOWN,true,"Unable to allocate table with table3.dat"); … … 464 464 465 465 // Interpolate values within the list and verify return values 466 table1 = psLookupTableAlloc(" table10.dat",0,20);466 table1 = psLookupTableAlloc("verified/table10.dat",0,20); 467 467 table1 = psLookupTableRead(table1); 468 468 for(psS32 i = 0; i < table1->numRows-1; i++ ) { … … 547 547 548 548 // Interpolate values within the list and verify return values 549 table1 = psLookupTableAlloc(" table10.dat",0,20);549 table1 = psLookupTableAlloc("verified/table10.dat",0,20); 550 550 table1 = psLookupTableRead(table1); 551 551 statusVector = psVectorAlloc(table1->numCols,PS_TYPE_U32);
Note:
See TracChangeset
for help on using the changeset viewer.
