- Timestamp:
- Aug 21, 2008, 1:54:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/commandline_test.cc
r1426 r1427 41 41 bool test_failures(yat::test::Suite& error); 42 42 bool test_option_name_clash(yat::test::Suite& suite); 43 bool test_free_arg(yat::test::Suite& suite); 43 44 44 45 int main(int argc, char* argv[]) … … 56 57 suite.add(test_failures(suite)); 57 58 suite.add(test_option_name_clash(suite)); 59 suite.add(test_free_arg(suite)); 58 60 } 59 61 catch (std::runtime_error& e) { … … 403 405 } 404 406 405 406 407 407 bool test_free_arg(yat::test::Suite& suite) 408 { 409 bool ok=true; 410 suite.err() << "Testing free arguments ..."; 411 412 CommandLine cmd; 413 OptionHelp help(cmd); 414 int ac = 3; 415 char* av[] = { "test_prog", "file", "kl"}; 416 cmd.parse(ac, av); 417 suite.err() << "ok\n"; 418 return ok; 419 } 420 421 422
Note: See TracChangeset
for help on using the changeset viewer.