Add core.cpp, testing changes

This commit is contained in:
Krzosa Karol
2024-01-14 10:22:39 +01:00
parent c375cdf04f
commit 37eed81ea5
7 changed files with 77 additions and 126 deletions

View File

@@ -1,5 +1,3 @@
#include "../core_library/core.c"
void TestSimpleInsertAndIntegrity() {
MA_Scratch scratch;
Table<uint64_t> table = {scratch};
@@ -36,9 +34,3 @@ void TestStrings() {
IO_Assert(table.gets("3")->i == 3);
table.dealloc();
}
int main() {
TestSimpleInsertAndIntegrity();
TestStrings();
return 0;
}