Added more methods to uninitialized tests

This commit is contained in:
Leonetienne
2022-03-06 17:44:55 +01:00
parent 6c92ae504c
commit 87fd692149
2 changed files with 31 additions and 5 deletions

View File

@@ -81,6 +81,30 @@ TEST_CASE(__FILE__"/RuntimeErrorOnUninitialized", "[Uninitialized]")
, std::runtime_error
);
REQUIRE_THROWS_AS(
bmp.Rotate180deg()
, std::runtime_error
);
REQUIRE_THROWS_AS(
bmp.Rotate90degClockwise()
, std::runtime_error
);
REQUIRE_THROWS_AS(
bmp.Rotate90degCounterclockwise()
, std::runtime_error
);
REQUIRE_THROWS_AS(
bmp.Crop({0,0}, {5,5})
, std::runtime_error
);
REQUIRE_THROWS_AS(
bmp.ConvertColormode(Colormode::RGB)
, std::runtime_error
);
return;
}