7 #include "../eunit_tests.h"
10 main(int argc, char *argv[])
16 Eo *obj = eo_add(INHERIT2_CLASS, NULL);
18 eo_do(obj, simple_a_set(1));
19 Simple_Public_Data *pd = eo_data_get(obj, SIMPLE_CLASS);
24 obj = eo_add(INHERIT3_CLASS, NULL);
26 eo_do(obj, simple_a_set(1));
27 pd = eo_data_get(obj, SIMPLE_CLASS);
32 obj = eo_add(INHERIT2_CLASS, NULL);
33 eo_do(obj, inherit2_print());
36 obj = eo_add(SIMPLE_CLASS, NULL);
37 fail_if(eo_do(obj, inherit2_print2()));
39 fail_if(eo_do_super(obj, simple_a_print()));
41 fail_if(eo_do(obj, simple_class_print()));
43 fail_if(!eo_class_do(SIMPLE_CLASS, simple_class_print()));
44 fail_if(!eo_class_do(INHERIT_CLASS, simple_class_print()));
45 fail_if(!eo_class_do(INHERIT2_CLASS, simple_class_print()));
46 fail_if(!eo_class_do(INHERIT3_CLASS, simple_class_print()));
48 fail_if(eo_class_do(SIMPLE_CLASS, simple_a_print()));
50 eo_do_super(obj, eo_constructor());
51 eo_do_super(obj, eo_destructor());