IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5296


Ignore:
Timestamp:
Oct 12, 2005, 11:52:56 AM (21 years ago)
Author:
drobbin
Message:

Update Argument testing.

Location:
trunk/psLib/test/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/types/tst_psMetadata_07.c

    r5295 r5296  
    1414*  @author  David Robbins, MHPCC
    1515*
    16 *  @version $Revision: 1.12 $  $Name: not supported by cvs2svn $
    17 *  @date  $Date: 2005-10-12 21:39:16 $
     16*  @version $Revision: 1.13 $  $Name: not supported by cvs2svn $
     17*  @date  $Date: 2005-10-12 21:52:52 $
    1818*
    1919*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    238238    if ( i != 0 ) {
    239239        if ( !psArgumentRemove(i, &argc, argv) ) {
    240             printf("\n Failed to remove string from argument list\n");
     240            printf("\n Failed to remove float from argument list\n");
    241241        }
    242242    } else {
    243243        printf("\nFailed to find string in argument list\n");
     244        return 1;
    244245    }
    245246    psArgumentRemove(i, &argc, argv);
     
    254255    psMetadataAdd(args, PS_LIST_TAIL, "-float", PS_DATA_F32, "Test Float", 0.0);
    255256
     257    printf("\nThis Should print the Argument Help list.\n\n");
     258    psArgumentHelp(args);
     259
    256260    if ( !psArgumentParse(args, &argc, argv) || argc != 1 ) {
    257261        psArgumentHelp(args);
    258262        psFree(args);
    259         return 0;
     263        return 2;
    260264    }
    261265
  • trunk/psLib/test/types/verified/tst_psMetadata_07.stdout

    r5222 r5296  
    4747 Argument 3 has been removed
    4848Log level = 5
     49
     50This Should print the Argument Help list.
     51
     52Optional arguments, with default values:
     53    -string    (SomeString)      Test String
     54    -int       (1)               Int1
     55               (2)               Int2
     56    -float     (0.000000e+00)    Test Float
    4957Updating -string
    5058    -string (Test String): new
Note: See TracChangeset for help on using the changeset viewer.