Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/options.cpp')
-rw-r--r--test/options.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/options.cpp b/test/options.cpp
index 0e86177..610a6bc 100644
--- a/test/options.cpp
+++ b/test/options.cpp
@@ -656,6 +656,7 @@ TEST_CASE("Unrecognised options", "[options]") {
"--long",
"-su",
"--another_unknown",
+ "-a",
});
auto** argv = av.argv();
@@ -669,7 +670,7 @@ TEST_CASE("Unrecognised options", "[options]") {
options.allow_unrecognised_options();
auto result = options.parse(argc, argv);
auto& unmatched = result.unmatched();
- CHECK((unmatched == std::vector<std::string>{"--unknown", "--another_unknown"}));
+ CHECK((unmatched == std::vector<std::string>{"--unknown", "-u", "--another_unknown", "-a"}));
}
}