コード例 #1
0
void TestArrayFake(void)
{
	CArrayTemplate<char>	cac;
	char*					szTest;
	char*					pc;

	szTest = (char*)malloc(5);
	strcpy(szTest, "Test");

	cac.Fake(szTest, 2, 5);
	pc = cac.Add();
	*pc = 'x';

	AssertString("Text", cac.GetData());
	free(szTest);
}