Beispiel #1
0
void LcdTest()
{
	//╨зи╚╡Бйт
	if(ColorTest(BLACK, "╨зи╚") != OK)
		goto TEST_FAIL;
	//ю╤и╚╡Бйт
	if(ColorTest(BLUE, "ю╤и╚") != OK)
		goto TEST_FAIL;
	//╨Ли╚╡Бйт
	if(ColorTest(RED, "╨Ли╚") != OK)
		goto TEST_FAIL;
	//бли╚╡Бйт
	if(ColorTest(GREEN, "бли╚") != OK)
		goto TEST_FAIL;
	//гЁю╤и╚╡Бйт
	if(ColorTest(CYAN, "гЁю╤и╚") != OK)
		goto TEST_FAIL;
	//╥ши╚╡Бйт
	if(ColorTest(MAGENTA, "╥ши╚") != OK)
		goto TEST_FAIL;
	//╩фи╚╡Бйт
	if(ColorTest(YELLOW, "╩фи╚") != OK)
		goto TEST_FAIL;
	//╟ви╚╡Бйт
	if(ColorTest(WHITE, "╟ви╚") != OK)
		goto TEST_FAIL;

	//вжлЕ╢Сп║╪╟м╪ф╛╡Бйт
	Clear();

	if(FillRect(0, 319, 0, 239, BLACK) != OK)
		goto TEST_FAIL;

	SetScrFont(FONT12, WHITE);
	if(TextOutByPixel(20, 20, "12╨евжлЕ 12345 abcde") != OK)
		goto TEST_FAIL;

	SetScrFont(FONT16, WHITE);
	if(TextOutByPixel(20, 40, "16╨евжлЕ 12345 abcde") != OK)
		goto TEST_FAIL;

	SetScrFont(FONT20, WHITE);
	if(TextOutByPixel(20, 70, "20╨евжлЕ 12345 abcde") != OK)
		goto TEST_FAIL;

	SetScrFont(FONT24, WHITE);
	if(TextOutByPixel(20, 100, "24╨евжлЕ 12345 abcde")!= OK)
		goto TEST_FAIL;

	//отй╬╡Бйтм╪ф╛
	ShowBmpFile(80, 140, "pic/test.bmp");

	WaitKey(0);
	return;

TEST_FAIL:
	Clear();
	TextOut(5, 5, ALIGN_CENTER, "отй╬фа╡Бйтй╖╟э");
	GetKey(0);
}
Beispiel #2
0
void Test() {
	TimerTest().ExecuteTest();
	FoldTest().ExecuteTest();
	SolidUnionTest().ExecuteTest();
	BoundingSolidTest().ExecuteTest();
	SolidIntersectionTest().ExecuteTest();
	MaybeTest().ExecuteTest();
	PlaneTest().ExecuteTest();
	TransformationAdapterTest().ExecuteTest();
	SphereTest().ExecuteTest();
	InheritableTest().ExecuteTest();
	AutoTest().ExecuteTest();
	UtilitiesTest().ExecuteTest();
	PolynomialTest().ExecuteTest();
	ProjectionPlaneTest().ExecuteTest();
	Vector3dTest().ExecuteTest();
	ColorTest().ExecuteTest();
}