~ fixed unit testing
This commit is contained in:
parent
566bfee91e
commit
576c3411b9
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue