Commit 97b6265ceef94caa1d73cb5305d74b11043cf510

Authored by Henry Schreiner
Committed by GitHub
1 parent 46f192bb

Dropping check for size in test (not needed anymore)

Showing 1 changed file with 0 additions and 2 deletions
tests/NewParseTest.cpp
@@ -9,8 +9,6 @@ using cx = std::complex<double>; @@ -9,8 +9,6 @@ using cx = std::complex<double>;
9 CLI::Option * 9 CLI::Option *
10 add_option(CLI::App &app, std::string name, cx &variable, std::string description = "", bool defaulted = false) { 10 add_option(CLI::App &app, std::string name, cx &variable, std::string description = "", bool defaulted = false) {
11 CLI::callback_t fun = [&variable](CLI::results_t res) { 11 CLI::callback_t fun = [&variable](CLI::results_t res) {
12 - if(res.size() != 2)  
13 - return false;  
14 double x, y; 12 double x, y;
15 bool worked = CLI::detail::lexical_cast(res[0], x) && CLI::detail::lexical_cast(res[1], y); 13 bool worked = CLI::detail::lexical_cast(res[0], x) && CLI::detail::lexical_cast(res[1], y);
16 if(worked) 14 if(worked)