Madeorsk
46b6f24432
+ 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.
16 lines
390 B
C
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;
|
|
}
|