tests: add optional GoogleTest-based smoke-tests and CMake support (BUILD_GTEST_SMOKE)
This commit is contained in:
1 parent
f4d1602d87
commit
b44bb09891
4 files changed
+82
-3
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(GenericSmokeGTest, BasicStringOps) {
|
||||
std::string s = "MiXeD";
|
||||
for (auto &c : s) c = (char)std::tolower(c);
|
||||
EXPECT_EQ(s, "mixed");
|
||||
}
|
||||
|
||||
TEST(GenericSmokeGTest, VariantLike) {
|
||||
// simulate basic core logic check
|
||||
int v = 42;
|
||||
EXPECT_EQ(v + 1, 43);
|
||||
}
|
||||
Reference in new issue
Block a user