Last active
December 11, 2015 12:32
-
-
Save melihovv/6f5b11a53cac1b5f6aef to your computer and use it in GitHub Desktop.
gtest stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gtest/gtest.h> | |
int main(int argc, char* argv[]) | |
{ | |
testing::InitGoogleTest(&argc, argv); | |
return RUN_ALL_TESTS(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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