Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <exception>
- #include <functional>
- #include "test_runner.h"
- using namespace std;
- void TestDefault() {}
- void TestOne(int x, int y) {
- ASSERT_EQUAL(x, y);
- }
- void SomeFunc() {
- throw exception();
- }
- void TestTwo(function<void()> func) {
- func();
- }
- int main(int argc, char* argv[]) {
- TestRunner tr;
- int x = 1;
- int y = 2;
- RUN_TEST(tr, TestDefault);
- RUN_TEST(tr, TestOne, x, y);
- RUN_TEST(tr, TestTwo, SomeFunc);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement