Moved tests + Added more tests + Added memory testing to actions
Run tests / Run tests (push) Failing after 6s

This commit is contained in:
2026-05-03 20:07:16 +03:00
parent b992f8c223
commit a4fa298d95
26 changed files with 386 additions and 143 deletions
+26
View File
@@ -0,0 +1,26 @@
#define EV_STR_IMPLEMENTATION
#include "ev_str.h"
#include <assert.h>
#include <string.h>
static evstring global_str = evstr("Global 'Hello, World!'");
int main(void)
{
const evstring stack_str = evstr("Stack 'Hello, World!'");
assert(strcmp(stack_str, "Stack 'Hello, World!'") == 0);
assert(evstring_getLength(stack_str) == 21);
assert(strcmp(global_str, "Global 'Hello, World!'") == 0);
assert(evstring_getLength(global_str) == 22);
evstring heap_str = evstring_new("Heap 'Hello, World!'");
assert(heap_str != NULL);
assert(strcmp(heap_str, "Heap 'Hello, World!'") == 0);
assert(evstring_getLength(heap_str) == 20);
evstring_free(heap_str);
return 0;
}