Moved tests + Added more tests + Added memory testing to actions
Run tests / Run tests (push) Failing after 6s
Run tests / Run tests (push) Failing after 6s
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#define EV_STR_IMPLEMENTATION
|
||||
#include "ev_str.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
evstring text = evstring_new("Hello, Hello!");
|
||||
assert(text != NULL);
|
||||
|
||||
evstring rep_str = evstring_replaceFirst(text, evstr("Hello"), evstr("Bye"));
|
||||
assert(rep_str != NULL);
|
||||
assert(strcmp(rep_str, "Bye, Hello!") == 0);
|
||||
|
||||
evstring_free(rep_str);
|
||||
evstring_free(text);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user