basic hastable working, though stress testing breaks

This commit is contained in:
herbglitch 2025-02-17 06:06:11 -07:00
parent 6a9f914ffb
commit c175278416
4 changed files with 114 additions and 57 deletions

View file

@ -32,10 +32,9 @@ void ARC_Test_UnsetErrnoStream(void) __attribute__ ((destructor));
#define ARC_CHECK(TEST)\
if(temp_arc_test_num_checks_run__ARC_TEST__ == NULL || temp_arc_test_num_checks_passed__ARC_TEST__ == NULL){ return; }\
printf(" %4u) ", *temp_arc_test_num_checks_run__ARC_TEST__);\
++*temp_arc_test_num_checks_run__ARC_TEST__;\
if(TEST){ printf("PASS\t\n"); ++*temp_arc_test_num_checks_passed__ARC_TEST__; }\
else { printf("FAIL\t%s\n", #TEST); }
if(TEST){ ++*temp_arc_test_num_checks_passed__ARC_TEST__; }\
else { printf(" %4u) ", *temp_arc_test_num_checks_run__ARC_TEST__); printf("FAIL\t%s\n", #TEST); }
#ifdef __cplusplus
}