14 lines
312 B
C++
14 lines
312 B
C++
#include <gtest/gtest.h>
|
|
#include <iostream>
|
|
|
|
TEST(gtest, helloworld) {
|
|
std::cout << "Hello world!" << std::endl;
|
|
// Google Test will also provide macros for assertions.
|
|
ASSERT_EQ(1+1, 2);
|
|
}
|
|
|
|
int main(int argc, char** argv) {
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
return RUN_ALL_TESTS();
|
|
}
|