comparison tests/x_expected.cpp @ 0:d098192f01d9

Initial commit to the repository.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Mar 2011 19:53:12 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d098192f01d9
1 #include "x1.h"
2 #include "x2.h"
3 #include "x3.h"
4
5 #include <stdlib.h>
6
7 int main(int argc, char* argv[])
8 {
9 int retval = EXIT_SUCCESS;
10
11 {
12 sample_test sample_test_instance;
13 sample_test_instance.add_test("test42", &sample_test::test42);
14 sample_test_instance.add_test("testbeast", &sample_test::testbeast);
15 sample_test_instance.add_test("testfivealive", &sample_test::testfivealive);
16 const int r = sample_test_instance.run(argc, argv);
17 retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE;
18 }
19 {
20 misc_tests misc_tests_instance;
21 misc_tests_instance.add_test("testexceptions", &misc_tests::testexceptions);
22 misc_tests_instance.add_test("testloopdata", &misc_tests::testloopdata);
23 misc_tests_instance.add_test("testfloatingpoint", &misc_tests::testfloatingpoint);
24 const int r = misc_tests_instance.run(argc, argv);
25 retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE;
26 }
27 {
28 exception_test exception_test_instance;
29 exception_test_instance.add_test("test_array_bounds", &exception_test::test_array_bounds);
30 exception_test_instance.add_test("test_should_catch_std_exceptions", &exception_test::test_should_catch_std_exceptions);
31 const int r = exception_test_instance.run(argc, argv);
32 retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE;
33 }
34 {
35 MyTest MyTest_instance;
36 MyTest_instance.add_test("testIt", &MyTest::testIt);
37 const int r = MyTest_instance.run(argc, argv);
38 retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE;
39 }
40
41 return retval;
42 }