예제 #1
0
파일: TestObj.c 프로젝트: pavansondur/lucy
static void
test_abstract_routines(TestBatch *batch) {
    Obj *blank = VTable_Make_Obj(OBJ);
    S_verify_abstract_error(batch, S_attempt_init, blank, "init");

    Obj *obj = S_new_testobj();
    S_verify_abstract_error(batch, S_attempt_Clone,      obj, "Clone");
    S_verify_abstract_error(batch, S_attempt_Make,       obj, "Make");
    S_verify_abstract_error(batch, S_attempt_Compare_To, obj, "Compare_To");
    S_verify_abstract_error(batch, S_attempt_To_I64,     obj, "To_I64");
    S_verify_abstract_error(batch, S_attempt_To_F64,     obj, "To_F64");
    S_verify_abstract_error(batch, S_attempt_Load,       obj, "Load");
    S_verify_abstract_error(batch, S_attempt_Mimic,      obj, "Mimic");
    DECREF(obj);
}
예제 #2
0
static void
test_abstract_routines(TestBatchRunner *runner) {
    Obj *blank = Class_Make_Obj(OBJ);
    S_verify_abstract_error(runner, S_attempt_init, blank, "init");

    Obj *obj = S_new_testobj();
    S_verify_abstract_error(runner, S_attempt_Clone,      obj, "Clone");
    S_verify_abstract_error(runner, S_attempt_Compare_To, obj, "Compare_To");
    S_verify_abstract_error(runner, S_attempt_To_I64,     obj, "To_I64");
    S_verify_abstract_error(runner, S_attempt_To_F64,     obj, "To_F64");
    S_verify_abstract_error(runner, S_attempt_Mimic,      obj, "Mimic");
    DECREF(obj);
}