1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-02 13:43:52 +00:00

A few more warning fixes, this time only in tests

This commit is contained in:
Henry Fredrick Schreiner 2017-03-03 21:47:20 -05:00
parent 94d3ce0e17
commit 0a6863d528

View File

@ -75,7 +75,7 @@ TEST_F(TApp, NoFallThroughOpts) {
int val = 1;
app.add_option("--val", val);
auto sub = app.add_subcommand("sub");
app.add_subcommand("sub");
args = {"sub", "--val", "2"};
EXPECT_THROW(run(), CLI::ExtrasError);
@ -86,7 +86,7 @@ TEST_F(TApp, NoFallThroughPositionals) {
int val = 1;
app.add_option("val", val);
auto sub = app.add_subcommand("sub");
app.add_subcommand("sub");
args = {"sub", "2"};
EXPECT_THROW(run(), CLI::ExtrasError);
@ -97,7 +97,7 @@ TEST_F(TApp, FallThroughRegular) {
int val = 1;
app.add_option("--val", val);
auto sub = app.add_subcommand("sub");
app.add_subcommand("sub");
args = {"sub", "--val", "2"};
// Should not throw
@ -109,7 +109,7 @@ TEST_F(TApp, FallThroughEquals) {
int val = 1;
app.add_option("--val", val);
auto sub = app.add_subcommand("sub");
app.add_subcommand("sub");
args = {"sub", "--val=2"};
// Should not throw