Commit 8e362bbd authored by Purves, Murray's avatar Purves, Murray
Browse files

Improving tstString coverage

parent 051d19f1
......@@ -163,4 +163,9 @@ TEST(StringFunctions, MakeLength)
testString = make_length(longString, 15);
EXPECT_EQ(15, testString.length());
EXPECT_STREQ("this string is ", testString.c_str());
std::string sameString = "this string is just right";
testString = make_length(sameString, 25);
EXPECT_EQ(sameString.length(), testString.length());
EXPECT_STREQ(sameString.c_str(), testString.c_str());
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment