Skip to content

Instantly share code, notes, and snippets.

@melihovv
Last active December 11, 2015 12:32
Show Gist options
  • Save melihovv/6f5b11a53cac1b5f6aef to your computer and use it in GitHub Desktop.
Save melihovv/6f5b11a53cac1b5f6aef to your computer and use it in GitHub Desktop.
gtest stub
#include <gtest/gtest.h>
int main(int argc, char* argv[])
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
#include <gtest/gtest.h>
TEST(Test, TestCase)
{
ASSERT_EQ(true, true);
}
class QueueTest : public ::testing::Test
{
protected:
virtual void SetUp() {
q1_.Enqueue(1);
q2_.Enqueue(2);
q2_.Enqueue(3);
}
// virtual void TearDown() {}
Queue<int> q0_;
Queue<int> q1_;
Queue<int> q2_;
};
TEST_F(QueueTest, IsEmptyInitially)
{
EXPECT_EQ(0, q0_.size());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment