libksr/tests/ksrstring.c
Madeorsk 46b6f24432 Create first structures and functions.
+ Create ksrarrays.
+ Create ksrbuffers.
+ Create ksrpromises.
+ Create ksregex.
+ Create strings and files helper functions.
+ Define some logging constants.

+ Setup basic unit tests and code coverage.
2021-07-31 19:06:57 +02:00

16 lines
390 B
C

#include "ksr/string.h"
#include <assert.h>
#include <ksr/buffers.h>
int main(/*int argc, char *argv[]*/)
{
assert(str_equals("hello", to_lowercase("heLLo")));
assert(str_equals("hello", to_lowercase("HELLO")));
assert(str_equals("hello", to_lowercase("Hello")));
assert(str_equals("hello", to_lowercase("hellO")));
assert(!str_equals("heLLo", to_lowercase("heLLo")));
return 0;
}