16 lines
310 B
C
16 lines
310 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_strn(str,strlen(str));
|
||
|
|
||
|
ASSERTED(strcmp(str, vstr.buf) == 0);
|
||
|
ASSERTED(strlen(str) == vstr.len);
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|