argparse/test
Sean Robinson 67d56afef8 Add test case for missing expected positional argument
This fills a tiny gap in the positional_arguments suite.  Most existing
tests have positional arguments.  The one case without an argument uses
Argument::remaining so that ArgumentParserArgument::parse_args does not
throw, instead ArgumentParser::get<> throws std::logic_error.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2021-09-14 09:44:35 -07:00
..
.gitignore
CMakeLists.txt Add CMake project name 2021-09-09 13:43:21 -07:00
doctest.hpp
main.cpp
README.md
test_actions.cpp
test_append.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_compound_arguments.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_const_correct.cpp Introduce separate const-correctness test 2021-08-03 22:12:05 +02:00
test_container_arguments.cpp
test_help.cpp add tests for repr() and extend tests for help msg 2020-12-15 19:05:18 +03:00
test_invalid_arguments.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_is_used.cpp Add ArgumentParser.is_used to discern user-supplied values from defaults 2021-04-07 14:09:10 -07:00
test_issue_37.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_negative_numbers.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_optional_arguments.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_parent_parsers.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_parse_args.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_positional_arguments.cpp Add test case for missing expected positional argument 2021-09-14 09:44:35 -07:00
test_repr.cpp add tests for repr() and extend tests for help msg 2020-12-15 19:05:18 +03:00
test_required_arguments.cpp
test_scan.cpp
test_utility.hpp
test_value_semantics.cpp Introduce separate const-correctness test 2021-08-03 22:12:05 +02:00
test_version.cpp

Argparse Tests

Linux

$ mkdir build
$ cd build
$ cmake ../.
$ make
$ ./tests

Windows

  1. Generate Visual Studio solution
$ mkdir build
$ cd build
$ cmake ../. -G "Visual Studio 15 2017"
  1. Open ARGPARSE.sln
  2. Build tests in RELEASE | x64
  3. Run tests.exe