Skip to content

Commit

Permalink
style: pre-commit.ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 30, 2024
1 parent 19859fc commit 69eeac3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/AppTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,23 +1240,23 @@ TEST_CASE_METHOD(TApp, "ExpectedRangeParam", "[app]") {

app.add_option("-s")->required()->expected(2, 4);

args = { "-s", "one" };
args = {"-s", "one"};

CHECK_THROWS_AS(run(), CLI::ArgumentMismatch);

args = { "-s", "one", "two" };
args = {"-s", "one", "two"};

CHECK_NOTHROW(run());

args = { "-s", "one", "two","three" };
args = {"-s", "one", "two", "three"};

CHECK_NOTHROW(run());

args = { "-s", "one", "two", "three","four" };
args = {"-s", "one", "two", "three", "four"};

CHECK_NOTHROW(run());

args = { "-s", "one", "two", "three","four","five" };
args = {"-s", "one", "two", "three", "four", "five"};

CHECK_THROWS_AS(run(), CLI::ExtrasError);
}
Expand All @@ -1265,23 +1265,23 @@ TEST_CASE_METHOD(TApp, "ExpectedRangePositional", "[app]") {

app.add_option("arg")->required()->expected(2, 4);

args = {"one" };
args = {"one"};

CHECK_THROWS_AS(run(), CLI::ArgumentMismatch);

args = {"one", "two" };
args = {"one", "two"};

CHECK_NOTHROW(run());

args = {"one", "two","three" };
args = {"one", "two", "three"};

CHECK_NOTHROW(run());

args = {"one", "two", "three","four" };
args = {"one", "two", "three", "four"};

CHECK_NOTHROW(run());

args = {"one", "two", "three","four","five" };
args = {"one", "two", "three", "four", "five"};

CHECK_THROWS_AS(run(), CLI::ExtrasError);
}
Expand Down

0 comments on commit 69eeac3

Please sign in to comment.