Skip to content
Create a gist now

Instantly share code, notes, and snippets.

anonymous /gtest
Created Dec 12, 2012

#include <iostream>
#include <gtest/gtest.h>
namespace Foo {
class SimpleTest: public ::testing::Test {
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.