Example #1
0
int main()
{
	bool ret = true;
	ret &= test_references();
	ret &= test_saving();
	ret &= test_user_data();

	if(ret)
	{
		printf("All tests passed!\n");
		return 0;
	}
	else
	{
		return -1;
	}
}
Example #2
0
int __cdecl main(void) {
  test_base64_encode();
  test_match_prefix();
  test_remove_double_dots();
  test_should_keep_alive();
  test_parse_http_message();
  test_mg_download();
  test_mg_get_var();
  test_set_throttle();
  test_next_option();
  test_user_data();
  test_mg_stat();
  test_mg_upload();
#ifdef USE_LUA
  test_lua();
#endif
  test_skip_quoted();
  printf("%s\n", "PASSED");
  return 0;
}