00001 #include "TGATests.h"
00002
00003
00004 void
00005 TGATests::testLoader() {
00006 std::string images[] = { "test", "rgb", "rgb_bottom_left", "rgba" };
00007 for (unsigned i = 0; i < sizeof(images) / sizeof(*images); ++i) {
00008 std::string& img = images[i];
00009 AssertImagesEqual("images/targa/" + img + ".tga",
00010 "images/targa/reference/" + img + ".png");
00011 }
00012 }
00013
00014 Test*
00015 TGATests::suite() {
00016 typedef TestCaller<TGATests> Caller;
00017
00018 TestSuite* suite = new TestSuite();
00019 suite->addTest(new Caller("Test TGA Loader", &TGATests::testLoader));
00020 return suite;
00021 }