Test add address sanitizer to arena

This commit is contained in:
Krzosa Karol
2024-01-10 07:53:55 +01:00
parent fef3dd609a
commit 4fb5984ad8
5 changed files with 46 additions and 4 deletions

View File

@@ -47,6 +47,7 @@ void TestRemoveForLoop() {
IO_Assert(array[5] == 6);
IO_Assert(array[3] == 3);
IO_Assert(array.len == 99);
array.dealloc();
}
void TestBasic() {
@@ -114,6 +115,8 @@ void TestCopy() {
IO_Assert(b.cap == b.len && b.len == a.len);
IO_Assert(a.len == c.len && a.cap == c.cap);
a.dealloc();
}
int main() {

View File

@@ -34,6 +34,7 @@ void TestStrings() {
IO_Assert(table.gets("1")->i == 1);
IO_Assert(table.gets("2")->i == 2);
IO_Assert(table.gets("3")->i == 3);
table.dealloc();
}
int main() {