comparison tests/g.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 "g1.h"
2 #include "g2.h"
3 #include "g3.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("beast", &sample_test::beast);
15 sample_test_instance.add_test("fivealive", &sample_test::fivealive);
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("exceptions", &misc_tests::exceptions);
22 misc_tests_instance.add_test("loopdata", &misc_tests::loopdata);
23 misc_tests_instance.add_test("floatingpoint", &misc_tests::floatingpoint);
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("array_bounds", &exception_test::array_bounds);
30 exception_test_instance.add_test("should_catch_std_exceptions", &exception_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 const int r = MyTest_instance.run(argc, argv);
37 retval = retval == EXIT_SUCCESS ? r : EXIT_FAILURE;
38 }
39
40 return retval;
41 }