Skip to content

Commit f759572

Browse files
Move TemplatesTest from main.cpp to test_templates.cpp
1 parent 7ab6b47 commit f759572

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

tests/basic/test_templates.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <gtest/gtest.h>
2+
3+
import mcpplibs.templates;
4+
5+
TEST(TemplatesTest, HelloMcpp) {
6+
testing::internal::CaptureStdout();
7+
mcpplibs::templates::hello_mcpp();
8+
std::string output = testing::internal::GetCapturedStdout();
9+
EXPECT_EQ(output, "hello mcpp!\n");
10+
}
11+
12+
int main(int argc, char **argv) {
13+
testing::InitGoogleTest(&argc, argv);
14+
return RUN_ALL_TESTS();
15+
}

tests/main.cpp

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)