1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 12:13:52 +00:00
CLI11/tests/WindowsTest.cpp
2019-02-01 11:32:47 +01:00

14 lines
303 B
C++

#include "app_helper.hpp"
#include <Windows.h>
// This test verifies that CLI11 still works if
// Windows.h is included. #145
TEST_F(TApp, WindowsTestSimple) {
app.add_flag("-c,--count");
args = {"-c"};
run();
EXPECT_EQ(1u, app.count("-c"));
EXPECT_EQ(1u, app.count("--count"));
}