Add test fixture.

This commit is contained in:
James Grogan 2022-11-29 18:00:19 +00:00
parent af6fad72eb
commit d6d4319e21
37 changed files with 421 additions and 279 deletions

View file

@ -3,7 +3,9 @@
#include <iostream>
int main()
#include "TestFramework.h"
TEST_CASE(TestFontReader, "fonts")
{
const auto font_path = "/usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf";
@ -12,6 +14,4 @@ int main()
auto font = reader.read();
font->dumpInfo();
return 0;
}

View file

@ -3,9 +3,11 @@
#include "FontGlyph.h"
#include "Image.h"
#include "TestFramework.h"
#include <iostream>
int main()
TEST_CASE(TestFreeTypeFontEngine, "fonts")
{
FreeTypeFontEngine engine;
engine.initialize();
@ -14,6 +16,4 @@ int main()
engine.loadGlyph('A');
engine.loadGlyph(66);
engine.loadGlyph(67);
return 0;
}