Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // AllTests.cpp
  2. #include "gtest/gtest.h"
  3.  
  4. int main(int argc, char **argv)
  5. {
  6. testing::InitGoogleTest(&argc, argv);
  7. return RUN_ALL_TESTS();
  8. }
  9.  
  10. // SubtractTest.cpp
  11. #include "subtract.h"
  12. #include "gtest/gtest.h"
  13.  
  14. TEST(SubtractTest, SubtractTwoNumbers)
  15. {
  16. EXPECT_EQ(5, subtract(6, 1));
  17. }
  18.  
  19. #include <gtest/gtest.h>
  20.  
  21. #include "test_a.h"
  22. #include "test_b.h"
  23. #include "test_c.h"
  24.  
  25. int main(int argc, char **argv) {
  26. testing::InitGoogleTest(&argc, argv);
  27. return RUN_ALL_TESTS();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement