Commit eed238364b761ed5e23f6dd73081420add2261c2
Committed by
Henry Schreiner
1 parent
ede871c0
Expanding tests
Showing
2 changed files
with
8 additions
and
1 deletions
tests/AppTest.cpp
tests/CreationTest.cpp
| ... | ... | @@ -168,6 +168,13 @@ TEST_F(TApp, IncorrectConstructionNeedsCannotFind) { |
| 168 | 168 | EXPECT_THROW(cat->needs("--nothing"), CLI::IncorrectConstruction); |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | +#ifndef CLI11_CPP20 | |
| 172 | +TEST_F(TApp, IncorrectConstructionRequiresCannotFind) { | |
| 173 | + auto cat = app.add_flag("--cat"); | |
| 174 | + EXPECT_THROW(cat->requires("--nothing"), CLI::IncorrectConstruction); | |
| 175 | +} | |
| 176 | +#endif | |
| 177 | + | |
| 171 | 178 | TEST_F(TApp, IncorrectConstructionExcludesCannotFind) { |
| 172 | 179 | auto cat = app.add_flag("--cat"); |
| 173 | 180 | EXPECT_THROW(cat->excludes("--nothing"), CLI::IncorrectConstruction); | ... | ... |