==============================================================================
| 38 | |
| 39 | //============================================================================== |
| 40 | TEST(StringTest, CaseConversions) |
| 41 | { |
| 42 | EXPECT_EQ(common::toUpper("to UppEr"), "TO UPPER"); |
| 43 | EXPECT_EQ(common::toLower("to LowEr"), "to lower"); |
| 44 | |
| 45 | std::string str; |
| 46 | |
| 47 | str = "toUppEr"; |
| 48 | common::toUpperInPlace(str); |
| 49 | EXPECT_EQ(str, "TOUPPER"); |
| 50 | |
| 51 | str = "toLowEr"; |
| 52 | common::toLowerInPlace(str); |
| 53 | EXPECT_EQ(str, "tolower"); |
| 54 | } |
| 55 | |
| 56 | //============================================================================== |
| 57 | TEST(StringTest, Trim) |
nothing calls this directly
no test coverage detected