Files
evol-headers/tests/ev_str/find_first_overlapping_prefix.c
2026-05-03 20:07:16 +03:00

17 lines
283 B
C

#define EV_STR_IMPLEMENTATION
#include "ev_str.h"
#include <assert.h>
int main(void)
{
evstring text = evstr("aaab");
evstring query = evstr("aab");
evstring_view match = evstring_findFirst(text, query);
assert(match.len == 3);
assert(match.offset == 1);
return 0;
}