From d97447c85fe6f1c917e68ae73fa91f7aa37a0c85 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 18 Nov 2021 00:16:50 +0100 Subject: strutil: Add to_lower_ascii --- test/test_strutil.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/test_strutil.cc b/test/test_strutil.cc index 4b65218..038851d 100644 --- a/test/test_strutil.cc +++ b/test/test_strutil.cc @@ -217,3 +217,10 @@ TEST(strutil, join_view) { EXPECT_EQ(",foo,", str::join(std::vector({",", ","}), "foo")); } + +TEST(strutil, to_lower_ascii) { + EXPECT_EQ("", str::to_lower_ascii("")); + EXPECT_EQ("foo", str::to_lower_ascii("foo")); + EXPECT_EQ("foo", str::to_lower_ascii("FOO")); + EXPECT_EQ("smÖrgÅs", str::to_lower_ascii("SMÖRGÅS")); +} -- cgit v1.2.3-70-g09d2