void StringTest::testToUpper() { { std::string s = "abc"; assert (toUpper(s) == "ABC"); } { std::string s = "Abc"; assert (toUpper(s) == "ABC"); } { std::string s = "abc"; assert (toUpperInPlace(s) == "ABC"); } { std::string s = "Abc"; assert (toUpperInPlace(s) == "ABC"); } }
void toUpper(string& data) { toUpperInPlace(data); }