sv/tests/09_sv_after_delim.c

21 lines
391 B
C
Raw Normal View History

2025-07-11 15:43:46 +00:00
#define DEBUG
#include "../include/sv.h"
#include "../include/except.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void){
const char *s = "Hello,World";
const char *s1 = "World";
SV sv = sv_strn(s,strlen(s));
SV sv1 = sv_strn(s1,strlen(s1));
SV test = after_delim(sv,",");
ASSERTED(sv_cmp(sv1,test) == 0);
return EXIT_SUCCESS;
}