diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-11-18 00:16:50 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-11-18 00:16:50 +0100 |
| commit | d97447c85fe6f1c917e68ae73fa91f7aa37a0c85 (patch) | |
| tree | fc300a36e0c1bb583e92e80792439034aba7991e /test | |
| parent | a2161d3525ffdc49cbb30df5ceb1a203c1f23bb0 (diff) | |
strutil: Add to_lower_ascii
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_strutil.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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<std::string_view>({",", ","}), "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")); +} |
