We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 383adcd commit 78c5ebcCopy full SHA for 78c5ebc
cpp-strings-tests/cpp-strings-tests.cpp
@@ -779,6 +779,27 @@ namespace cppstringstests
779
Assert::AreEqual(L"abc..", ws.ljust(5, '.').c_str());
780
}
781
782
+ TEST_METHOD(lower)
783
+ {
784
+ for (int c = 0; c <= 255; ++c) {
785
+ const char ch{ char(c) };
786
+ constexpr int N{ 5 };
787
+ pcs::CppString s(N, ch);
788
+ s.lower();
789
+ for (int i=0; i < N; ++i)
790
+ Assert::AreEqual(pcs::to_lower(ch), s[i]);
791
+ }
792
+
793
+ for (int c = 0; c <= 0xffff; ++c) {
794
+ const wchar_t wch{ wchar_t(c) };
795
796
+ pcs::CppWString ws(N, wch);
797
+ ws.lower();
798
+ for (int i = 0; i < N; ++i)
799
+ Assert::AreEqual(pcs::to_lower(wch), ws[i]);
800
801
802
803
804
};
805
0 commit comments