Skip to content

Commit

Permalink
Fix OptionParser test.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d50bdcc78c49313861777c1abfdef24e5e69b2b3
  • Loading branch information
levlam committed Jun 17, 2020
1 parent 7754e80 commit 959ecf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdutils/test/OptionParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ TEST(OptionParser, run) {
td::OptionParser options;
options.set_description("test description");

td::string exename = "exename";
td::vector<td::string> args;
auto run_option_parser = [&](td::string command_line) {
args = td::full_split(command_line, ' ');
td::vector<char *> argv;
argv.push_back("exename");
argv.push_back(&exename[0]);
for (auto &arg : args) {
argv.push_back(&arg[0]);
}
Expand Down

0 comments on commit 959ecf3

Please sign in to comment.