This file contains hidden or 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
| bool test__TestSuite__TestName() | |
| { | |
| bool isTrue{true}; | |
| { | |
| isTrue &= (arg1 == arg2); | |
| } | |
| return isTrue; | |
| } |
This file contains hidden or 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 <sys/types.h> | |
| #include <sys/wait.h> | |
| #include <iostream> | |
| #include <cstdlib> | |
| #define BEGIN_TEST(TestSuite, TestName) \ | |
| bool test__##TestSuite##__##TestName(void) \ | |
| { \ | |
| bool ret; \ | |
| pid_t pid = fork(); \ |
This file contains hidden or 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 "test.hpp" | |
| // Function to add two integers | |
| int addIntegers(const int& a, const int& b) | |
| { | |
| return a + b; | |
| } | |
| // Test case to check commutative property of addIntegers | |
| BEGIN_TEST(AddProps, Commutative) |
This file contains hidden or 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 <iomanip> | |
| #include <iostream> | |
| #define BEGIN_TEST(TestSuite, TestName) \ | |
| bool test__##TestSuite##__##TestName(void) \ | |
| { \ | |
| bool isTrue{true}; | |
| #define END_TEST \ | |
| return isTrue; \ |
NewerOlder