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

17 lines
281 B
C

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