libksr/tests/ksrstring.c

16 lines
368 B
C
Raw Normal View History

#include "ksr/string.h"
#include <assert.h>
#include <ksr/buffers.h>
int main(void)
{
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;
}