int main(int argc, char *argv[]) { AdgAlignment *alignment; adg_test_init(&argc, &argv); adg_test_add_object_checks("/adg/alignment/type/object", ADG_TYPE_ALIGNMENT); adg_test_add_entity_checks("/adg/alignment/type/entity", ADG_TYPE_ALIGNMENT); adg_test_add_container_checks("/adg/alignment/type/container", ADG_TYPE_ALIGNMENT); alignment = adg_alignment_new_explicit(0.5, 0.5); adg_container_add(ADG_CONTAINER(alignment), ADG_ENTITY(adg_logo_new())); adg_test_add_global_space_checks("/adg/alignment/behavior/global-space", alignment); alignment = adg_alignment_new_explicit(0.5, 0.5); adg_container_add(ADG_CONTAINER(alignment), ADG_ENTITY(adg_logo_new())); adg_test_add_local_space_checks("/adg/alignment/behavior/local-space", alignment); g_test_add_func("/adg/alignment/property/factor", _adg_property_factor); return g_test_run(); }
int main(int argc, char *argv[]) { AdgPath *path; adg_test_init(&argc, &argv); adg_test_add_object_checks("/adg/hatch/type/object", ADG_TYPE_HATCH); adg_test_add_entity_checks("/adg/hatch/type/entity", ADG_TYPE_HATCH); path = adg_path_new(); adg_path_move_to_explicit(path, 1, 2); adg_path_line_to_explicit(path, 4, 5); adg_path_line_to_explicit(path, 7, 8); adg_path_close(path); adg_test_add_global_space_checks("/adg/hatch/behavior/global-space", adg_hatch_new(ADG_TRAIL(path))); adg_test_add_local_space_checks("/adg/hatch/behavior/local-space", adg_hatch_new(ADG_TRAIL(path))); g_object_unref(path); g_test_add_func("/adg/hatch/property/fill-dress", _adg_property_fill_dress); return g_test_run(); }
int main(int argc, char *argv[]) { AdgContainer *container; adg_test_init(&argc, &argv); g_test_add_func("/adg/container/behavior/misc", _adg_behavior_misc); adg_test_add_object_checks("/adg/container/type/object", ADG_TYPE_CONTAINER); adg_test_add_entity_checks("/adg/container/type/entity", ADG_TYPE_CONTAINER); adg_test_add_container_checks("/adg/container/type/container", ADG_TYPE_CONTAINER); container = adg_container_new(); adg_container_add(container, ADG_ENTITY(adg_logo_new())); adg_test_add_global_space_checks("/adg/container/behavior/global-space", container); container = adg_container_new(); adg_container_add(container, ADG_ENTITY(adg_logo_new())); adg_test_add_local_space_checks("/adg/container/behavior/local-space", container); g_test_add_func("/adg/container/property/child", _adg_property_child); return g_test_run(); }
int main(int argc, char *argv[]) { adg_test_init(&argc, &argv); adg_test_add_object_checks("/adg/adim/type/object", ADG_TYPE_ADIM); adg_test_add_entity_checks("/adg/adim/type/entity", ADG_TYPE_ADIM); adg_test_add_global_space_checks("/adg/adim/behavior/global-space", adg_adim_new_full_explicit(1, 2, 3, 4, 9, 6, 7, 8, 9, 10)); adg_test_add_local_space_checks("/adg/adim/behavior/local-space", adg_adim_new_full_explicit(4, 3, 2, 1, 8, 7, 6, 9, 10, 9)); g_test_add_func("/adg/adim/property/org1", _adg_property_org1); g_test_add_func("/adg/adim/property/org2", _adg_property_org2); g_test_add_func("/adg/adim/property/has-extension1", _adg_property_has_extension1); g_test_add_func("/adg/adim/property/has-extension2", _adg_property_has_extension2); return g_test_run(); }