~ fixed unit testing

This commit is contained in:
Julian Hinxlage 2019-10-24 11:48:26 +02:00
parent 566bfee91e
commit 576c3411b9

View File

@ -10,14 +10,14 @@ TEST_CASE("default values") {
}
TEST_CASE("load Bitmap") {
Bitmap bitmap = Bitmap("../res/font.bmp");
Bitmap bitmap = Bitmap("../res/font1.bmp");
REQUIRE(bitmap.getWidth() == 128);
REQUIRE(bitmap.getHeight() == 64);
REQUIRE(bitmap.getBitsPerPixel() == 24);
}
TEST_CASE("Font") {
Font font("../res/font.bmp");
Font font("../res/font1.bmp", "../res/font1.toml");
REQUIRE(font.width() == 5);
REQUIRE(font.height() == 7);
REQUIRE(!font.getPixel('a', 1,1));