sv/tests/01_sv_str.c

16 lines
297 B
C
Raw Permalink Normal View History

2025-07-10 23:51:28 +00:00
#define DEBUG
#include "../include/sv.h"
#include "../include/except.h"
#include <stdlib.h>
#include <string.h>
int main(void){
char *str = "Hello World";
SV vstr = sv_str(str);
ASSERTED(strcmp(str, vstr.buf) == 0);
ASSERTED(strlen(str) == vstr.len);
return EXIT_SUCCESS;
}