Files
evol-headers/tests/ev_str/find_all_no_matches.c
T
mo7sen 2c74b727ef
Run tests / Run tests (push) Successful in 11s
Added more tests + fixed evstr issues
2026-05-04 21:44:32 +03:00

17 lines
446 B
C

#define EV_STR_IMPLEMENTATION
#include "ev_str.h"
#include <assert.h>
int main(void)
{
evstring_view search_results[1];
evstring text = evstr("Hello, this is me saying `Hello` like someone who says 'Hello'");
assert(evstring_findAll(text, evstr(""), search_results) == 0);
assert(evstring_findAll(text, evstr("Goodbye"), search_results) == 0);
assert(evstring_findAll(evstr("ab"), evstr("abc"), search_results) == 0);
return 0;
}