11 #include "../eunit_tests.h"
14 main(int argc, char *argv[])
20 Eo *obj = eo_add(INHERIT2_CLASS, NULL);
22 eo_do(obj, simple_a_set(1));
23 Simple_Public_Data *pd = eo_data_get(obj, SIMPLE_CLASS);
28 obj = eo_add(INHERIT3_CLASS, NULL);
30 eo_do(obj, simple_a_set(1));
31 pd = eo_data_get(obj, SIMPLE_CLASS);
36 obj = eo_add(INHERIT2_CLASS, NULL);
37 fail_if(!eo_do(obj, inherit2_print()));
38 fail_if(!eo_do(obj, inherit2_print(), inherit2_print()));
41 obj = eo_add(SIMPLE_CLASS, NULL);
42 fail_if(eo_do(obj, inherit2_print2()));
44 fail_if(eo_do_super(obj, simple_a_print()));
46 fail_if(eo_do(obj, simple_class_print()));
48 fail_if(!eo_class_do(SIMPLE_CLASS, simple_class_print()));
49 fail_if(!eo_class_do(INHERIT_CLASS, simple_class_print()));
50 fail_if(!eo_class_do(INHERIT2_CLASS, simple_class_print()));
51 fail_if(!eo_class_do(INHERIT3_CLASS, simple_class_print()));
53 fail_if(eo_class_do(SIMPLE_CLASS, simple_a_print()));
55 eo_do_super(obj, eo_constructor());
56 eo_do_super(obj, eo_destructor());