Added tests

This commit is contained in:
2025-10-18 11:22:09 -05:00
parent dd5764be5c
commit 952c2a668e
7 changed files with 131 additions and 7 deletions

11
tests/02_calloc.c Normal file
View File

@@ -0,0 +1,11 @@
#define DEBUG
#include <stdlib.h>
#include "../include/mem.h"
int main(void){
size_t nbytes = 20;
void *ptr = ALLOC(NOZERO, nbytes);
ASSERTED(ptr != NULL);
ASSERTED( !mem_is_zero(ptr, nbytes));
return EXIT_SUCCESS;
}