@@ -55,11 +55,16 @@ int main() {
expect(!is_hex_digit('!'));
});
etest::test("to_lower", [] {
etest::test("to_lower(char)", [] {
expect_eq(to_lower('A'), 'a');
expect_eq(to_lower('a'), 'a');
});
etest::test("to_lower(std::string)", [] {
expect_eq(to_lower("Hello There!!1"), "hello there!!1");
expect_eq(to_lower("woop woop"), "woop woop");
});
etest::test("no case compare", [] {
expect(no_case_compare("word"sv, "word"sv));
expect(no_case_compare("WORD"sv, "WORD"sv));