// // cli_test.cxx // cli-test // // Created by Sam Jaffe on 10/9/20. // Copyright © 2020 Sam Jaffe. All rights reserved. // #include "cli/cli.h" #include #include #if XCODE_UNIT_TEST // This is a hack to allow XCode to properly display failures when running // unit tests. #undef EXPECT_THAT #define EXPECT_THAT ASSERT_THAT #endif TEST(CliTest, EndsOnQuit) { std::stringstream input{R"(quit)"}; cli::cli(input).run(); }