Added tests
This commit is contained in:
11
tests/01_malloc.c
Normal file
11
tests/01_malloc.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#define DEBUG
|
||||
#include <stdlib.h>
|
||||
#include "../include/mem.h"
|
||||
|
||||
int main(void){
|
||||
size_t nbytes = 20;
|
||||
void *ptr = ALLOC(0, nbytes);
|
||||
ASSERTED(ptr != NULL);
|
||||
ASSERTED( mem_is_zero(ptr, nbytes));
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user