Ignore:
Timestamp:
Apr 10, 2008, 9:59:23 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Some more uint, u_int, and u_long fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/commandline_test.cc

    r1260 r1273  
    3333#include <fstream>
    3434#include <stdexcept>
    35 
    36 #include <sys/types.h>
    3735
    3836using namespace theplu;
     
    151149  CommandLine cmd;
    152150  OptionArg<std::string> input(cmd, "i,input", "input file");
    153   OptionArg<u_int> n(cmd, "n", "number of lines");
     151  OptionArg<unsigned int> n(cmd, "n", "number of lines");
    154152
    155153  suite.err() << "Testing OptionArg existence -i file...";
     
    220218  }
    221219
    222   suite.err() << "Testing OptionArg u_int value -n 3...";
     220  suite.err() << "Testing OptionArg unsigned int value -n 3...";
    223221  {
    224222    int ac = 3;
     
    257255  OptionSwitch verbose(cmd, "v,verbose", "explain what is being done");
    258256  OptionArg<std::string> input(cmd, "i,input", "input file");
    259   OptionArg<u_int> n(cmd, "n", "number of lines");
     257  OptionArg<unsigned int> n(cmd, "n", "number of lines");
    260258
    261259  suite.err() << "Testing unknown option --peter...";
     
    303301
    304302
    305   suite.err() << "Testing 23.12 is not u_int...";
     303  suite.err() << "Testing 23.12 is not unsigned int...";
    306304  {
    307305    int ac = 3;
     
    317315  }
    318316
    319   suite.err() << "Testing -1 is not u_int...";
     317  suite.err() << "Testing -1 is not unsigned int...";
    320318  {
    321319    int ac = 3;
Note: See TracChangeset for help on using the changeset viewer.