17 lines
361 B
C
17 lines
361 B
C
|
#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 = "HElLo wOrLd";
|
||
|
SV sv = sv_strn(s,strlen(s));
|
||
|
SV sv1 = sv_strn(s1,strlen(s1));
|
||
|
ASSERTED(sv_casecmp(sv,sv1) == 0);
|
||
|
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|