Add test fixture.
This commit is contained in:
parent
af6fad72eb
commit
d6d4319e21
37 changed files with 421 additions and 279 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue