comparison src/testcase.c @ 50:c986e45c1e91

Unittest for animate.c
author Thinker K.F. Li <thinker@branda.to>
date Sat, 09 Aug 2008 21:17:34 +0800
parents 79e9edf4c00a
children 9ab15ebc9061
comparison
equal deleted inserted replaced
49:6a3726fa7aad 50:c986e45c1e91
3 extern CU_pSuite get_tools_suite(void); 3 extern CU_pSuite get_tools_suite(void);
4 extern CU_pSuite get_coord_suite(void); 4 extern CU_pSuite get_coord_suite(void);
5 extern CU_pSuite get_geo_suite(void); 5 extern CU_pSuite get_geo_suite(void);
6 extern CU_pSuite get_shape_path_suite(void); 6 extern CU_pSuite get_shape_path_suite(void);
7 extern CU_pSuite get_redraw_man_suite(void); 7 extern CU_pSuite get_redraw_man_suite(void);
8 extern CU_pSuite get_animate_suite(void);
8 9
9 int 10 int
10 main(int argc, char * const argv[]) { 11 main(int argc, char * const argv[]) {
11 CU_pSuite suite; 12 CU_pSuite suite;
12 13
26 if(suite == NULL) 27 if(suite == NULL)
27 return CU_get_error(); 28 return CU_get_error();
28 suite = get_redraw_man_suite(); 29 suite = get_redraw_man_suite();
29 if(suite == NULL) 30 if(suite == NULL)
30 return CU_get_error(); 31 return CU_get_error();
32 suite = get_animate_suite();
33 if(suite == NULL)
34 return CU_get_error();
31 35
32 CU_basic_set_mode(CU_BRM_VERBOSE); 36 CU_basic_set_mode(CU_BRM_VERBOSE);
33 CU_basic_run_tests(); 37 CU_basic_run_tests();
34 CU_cleanup_registry(); 38 CU_cleanup_registry();
35 39