2021-07-31 19:05:04 +02:00
|
|
|
#include "ksr/string.h"
|
|
|
|
#include <assert.h>
|
|
|
|
#include <ksr/buffers.h>
|
|
|
|
|
2023-02-12 16:38:21 +01:00
|
|
|
int main(void)
|
2021-07-31 19:05:04 +02:00
|
|
|
{
|
|
|
|
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;
|
|
|
|
}
|