MCPcopy Create free account
hub / github.com/dartsim/dart / TEST

Function TEST

tests/unit/common/test_String.cpp:40–54  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

38
39//==============================================================================
40TEST(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//==============================================================================
57TEST(StringTest, Trim)

Callers

nothing calls this directly

Calls 9

toUpperFunction · 0.85
toLowerFunction · 0.85
toUpperInPlaceFunction · 0.85
toLowerInPlaceFunction · 0.85
trimLeftFunction · 0.85
trimRightFunction · 0.85
trimFunction · 0.85
splitFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected