sv/tests/01_sv_str.c
2025-07-10 18:51:28 -05:00

16 lines
297 B
C

#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;
}