This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
#define EV_STR_IMPLEMENTATION
|
||||
#include "ev_str.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
evstring_view search_results[1];
|
||||
evstring text = evstr("abcx");
|
||||
evstring query = evstr("abc");
|
||||
|
||||
assert(evstring_findAll(text, query, search_results) == 1);
|
||||
assert(search_results[0].data == text);
|
||||
assert(search_results[0].len == 3);
|
||||
assert(search_results[0].offset == 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user