Пример #1
0
TEST(TStr, GetStr) {
	TStr Str = "abcdef";
	TStr Empty = "";
	const TStr& Ref = Str.GetStr();
	Str[0] = 'x';
	EXPECT_EQ(Ref[0], 'x');
	EXPECT_EQ(Ref[1], 'b');
	const TStr& RefEmpty = Empty.GetStr();
	EXPECT_EQ(RefEmpty, "");
}