Пример #1
0
int
main(int argc, char *argv[])
{
    test_alloc();
    test_draw_when_box_fits_canvas();
    test_alloc_string();
    test_alloc_from_string();
    return EXIT_SUCCESS;
}
Пример #2
0
void test_string() {
	test_alloc_string();
	test_alloc_string_array();
	test_realloc_string();
	test_init_string();
	test_copy_string();
	test_trim_string();
	test_substr_before();
	test_substr_between();
	test_substr_after();
	test_dyna_strcat();
	test_append_char();
	test_split_string();
	test_split_string_once();
	test_equals_string();
	test_hash_code_string();
	test_strlwr();
}
Пример #3
0
int main2()
{
  if(!gc_init(1000))
    return EXIT_FAILURE;

  test_alloc_user();
  test_alloc_string();
  test_root_management();
  test_heap_dump();
  test_gc_string();
  test_gc_user();
  test_gc_walks_root_pointers();
  test_gc_with_pointer_array();
  test_gc_with_cycle();
  test_big_loop_doesnt_run_out_of_memory();
  test_alloc_outofmemory();

  printf("\n");

  return EXIT_SUCCESS;
}