Squashed 'libs/CommService/' content from commit 7ccc0fc
git-subtree-dir: libs/CommService git-subtree-split: 7ccc0fce88bbc5969df060058cf0fb57abe3bcf9
This commit is contained in:
19
libs/CLI11/tests/WindowsTest.cpp
Normal file
19
libs/CLI11/tests/WindowsTest.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright (c) 2017-2022, University of Cincinnati, developed by Henry Schreiner
|
||||
// under NSF AWARD 1414736 and by the respective contributors.
|
||||
// All rights reserved.
|
||||
//
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
#include "app_helper.hpp"
|
||||
#include <Windows.h>
|
||||
|
||||
// This test verifies that CLI11 still works if
|
||||
// Windows.h is included. #145
|
||||
|
||||
TEST_CASE_METHOD(TApp, "WindowsTestSimple", "[windows]") {
|
||||
app.add_flag("-c,--count");
|
||||
args = {"-c"};
|
||||
run();
|
||||
CHECK(app.count("-c") == 1u);
|
||||
CHECK(app.count("--count") == 1u);
|
||||
}
|
||||
Reference in New Issue
Block a user