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,19 @@
|
||||
#define EV_STR_IMPLEMENTATION
|
||||
#include "ev_str.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
evstring source = evstr("Stack 'Hello, World!'");
|
||||
evstring_view view = evstring_slice(source, 0, -1);
|
||||
|
||||
evstring str_fmt = evstring_new("%d, %d, %.*s", 1, 0, view.len, view.data + view.offset);
|
||||
assert(str_fmt != NULL);
|
||||
assert(strcmp(str_fmt, "1, 0, Stack 'Hello, World!'") == 0);
|
||||
|
||||
evstring_free(str_fmt);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user