18 lines
282 B
C
18 lines
282 B
C
#define EV_STR_IMPLEMENTATION
|
|
#include "ev_str.h"
|
|
|
|
#include <assert.h>
|
|
|
|
int main(void)
|
|
{
|
|
evstring text = evstr("");
|
|
evstring query = evstr("a");
|
|
|
|
evstring_view match = evstring_findFirst(text, query);
|
|
|
|
assert(match.len == 0);
|
|
assert(match.offset == ~0ull);
|
|
|
|
return 0;
|
|
}
|