Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/tests/test_Color.h
Show All 20 Lines | |||||
#include <cstring> | #include <cstring> | ||||
class TestColor : public CxxTest::TestSuite | class TestColor : public CxxTest::TestSuite | ||||
{ | { | ||||
public: | public: | ||||
void setUp() | void setUp() | ||||
{ | { | ||||
ColorActivateFastImpl(); | |||||
} | } | ||||
void test_Color4ub() | void test_Color4ub() | ||||
{ | { | ||||
CheckColor(0, 0, 0, 0x000000); | CheckColor(0, 0, 0, 0x000000); | ||||
CheckColor(1, 0, 0, 0x0000ff); | CheckColor(1, 0, 0, 0x0000ff); | ||||
CheckColor(0, 1, 0, 0x00ff00); | CheckColor(0, 1, 0, 0x00ff00); | ||||
CheckColor(0, 0, 1, 0xff0000); | CheckColor(0, 0, 1, 0xff0000); | ||||
Show All 13 Lines |
Wildfire Games · Phabricator