20 lines
330 B
C
20 lines
330 B
C
#define EV_STR_IMPLEMENTATION
|
|
#include "ev_str.h"
|
|
|
|
#include <assert.h>
|
|
#include <string.h>
|
|
|
|
int main(void)
|
|
{
|
|
evstring s = evstring_newFromStr("abc");
|
|
assert(s != NULL);
|
|
|
|
evstring_error_t err = evstring_pushStr(&s, s);
|
|
assert(err == EV_STR_ERR_NONE);
|
|
assert(strcmp(s, "abcabc") == 0);
|
|
|
|
evstring_free(s);
|
|
|
|
return 0;
|
|
}
|