16 lines
297 B
C
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;
|
|
}
|