mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Tests: Avoid compiling call to dap::optional<dap::string>(nullptr)
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
do { \
|
||||
ASSERT_TRUE(x.name == expectedName); \
|
||||
ASSERT_TRUE(x.value == expectedValue); \
|
||||
if (expectedType == nullptr) { \
|
||||
if (expectedType == std::string()) { \
|
||||
ASSERT_TRUE(x.type == dap::optional<dap::string>()); \
|
||||
} else { \
|
||||
ASSERT_TRUE(x.type == dap::optional<dap::string>(expectedType)); \
|
||||
|
||||
@@ -196,8 +196,8 @@ static bool testNoSupportsVariableType()
|
||||
CreateVariablesRequest(vars->GetId()));
|
||||
|
||||
ASSERT_TRUE(variables.size() == 2);
|
||||
ASSERT_VARIABLE(variables[0], "Children", "", nullptr);
|
||||
ASSERT_VARIABLE(variables[1], "test", "value", nullptr);
|
||||
ASSERT_VARIABLE(variables[0], "Children", "", "");
|
||||
ASSERT_VARIABLE(variables[1], "test", "value", "");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user