Skip to content

anonymous /gtest
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#include <iostream>
#include <gtest/gtest.h>
namespace Foo {
class SimpleTest: public ::testing::Test {
public:
SimpleTest() {};
virtual ~SimpleTest() {};
virtual void SetUp() {
};
virtual void TearDown() {
};
};
TEST_F(SimpleTest, doesGTestWork) {
EXPECT_EQ(42, 42);
}
}
int main(int argc, char **argv) {
std::cout << "Hello GTest" << std::endl; // prints Hello GTest
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.