Added more tests
Run tests / Run tests (push) Failing after 6s

This commit is contained in:
2026-05-03 20:21:33 +03:00
parent 96131f8188
commit 81a5b4a3c8
7 changed files with 105 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#define EV_STR_IMPLEMENTATION
#include "ev_str.h"
#include <assert.h>
int main(void)
{
evstring text = evstr("abc");
evstring query = evstr("");
evstring_view match = evstring_findFirst(text, query);
assert(match.len == 0);
assert(match.offset == ~0ull);
return 0;
}
+1
View File
@@ -10,6 +10,7 @@ tests = [
'find_first_overlapping_prefix',
'stack_get_space',
'overlapping_push',
'find_first_empty_query',
]
foreach t : tests