Exemplo n.º 1
0
//Tests the create function
int test_hmap_1() {
    hmap_handle* hmap1 = hmap_create();
    hmap_handle* hmap2 = hmap_create_fixed(3);

    if (!hmap1) {
        os_printf("expected value");
        return TEST_FAIL;
    }

    if (!hmap2) {
        os_printf("expected value");
        return TEST_FAIL;
    }

    return TEST_OK;
}
Exemplo n.º 2
0
hmap_handle* hmap_create(){
    return hmap_create_fixed(TABLE_STARTSIZE);
};