add: itoa && create test_int func to test func return int and test_str to ...

This commit is contained in:
2023-06-18 12:39:18 +02:00
parent 60ca301082
commit 496b92aed9
6 changed files with 95 additions and 11 deletions

View File

@ -5,9 +5,9 @@ main()
name = "galloc";
ptr1 = galloc(1);
test_str(ptr1, heap + LOCATION_DATA, "");
test_int(ptr1, heap + LOCATION_DATA, "");
free(ptr1);
ptr1 = galloc(1);
test_str(ptr1, heap + LOCATION_DATA, "alloc after free");
test_int(ptr1, heap + LOCATION_DATA, "alloc after free");
ptr2 = galloc(1);
}