Changeset 1273 for trunk/test/commandline_test.cc
- Timestamp:
- Apr 10, 2008, 9:59:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/commandline_test.cc
r1260 r1273 33 33 #include <fstream> 34 34 #include <stdexcept> 35 36 #include <sys/types.h>37 35 38 36 using namespace theplu; … … 151 149 CommandLine cmd; 152 150 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"); 154 152 155 153 suite.err() << "Testing OptionArg existence -i file..."; … … 220 218 } 221 219 222 suite.err() << "Testing OptionArg u _int value -n 3...";220 suite.err() << "Testing OptionArg unsigned int value -n 3..."; 223 221 { 224 222 int ac = 3; … … 257 255 OptionSwitch verbose(cmd, "v,verbose", "explain what is being done"); 258 256 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"); 260 258 261 259 suite.err() << "Testing unknown option --peter..."; … … 303 301 304 302 305 suite.err() << "Testing 23.12 is not u _int...";303 suite.err() << "Testing 23.12 is not unsigned int..."; 306 304 { 307 305 int ac = 3; … … 317 315 } 318 316 319 suite.err() << "Testing -1 is not u _int...";317 suite.err() << "Testing -1 is not unsigned int..."; 320 318 { 321 319 int ac = 3;
Note: See TracChangeset
for help on using the changeset viewer.