Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AllTests.cpp
- #include "gtest/gtest.h"
- int main(int argc, char **argv)
- {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
- }
- // SubtractTest.cpp
- #include "subtract.h"
- #include "gtest/gtest.h"
- TEST(SubtractTest, SubtractTwoNumbers)
- {
- EXPECT_EQ(5, subtract(6, 1));
- }
- #include <gtest/gtest.h>
- #include "test_a.h"
- #include "test_b.h"
- #include "test_c.h"
- int main(int argc, char **argv) {
- testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement