rotate unit test: don't depend on size

This commit is contained in:
nick black 2020-05-10 22:19:34 -04:00
parent 3a8b0b9716
commit 646b8ba4a5
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -115,7 +115,7 @@ TEST_CASE("Rotate") {
auto ncv = ncvisual_from_rgba(nc_, rgba.data(), height, width * 4, width);
REQUIRE(ncv);
int rendered = ncvisual_render(ncv, 0, 0, -1, -1);
CHECK(dimx * dimy / 8 <= rendered);
CHECK(0 < rendered);
CHECK(0 == notcurses_render(nc_));
uint32_t* rgbaret = ncplane_rgba(ncvisual_plane(ncv), 0, 0, -1, -1);
REQUIRE(rgbaret);
@ -156,7 +156,7 @@ TEST_CASE("Rotate") {
auto ncv = ncvisual_from_rgba(nc_, rgba.data(), height, width * 4, width);
REQUIRE(ncv);
int rendered = ncvisual_render(ncv, 0, 0, -1, -1);
CHECK(dimx * dimy / 8 <= rendered);
CHECK(0 < rendered);
CHECK(0 == notcurses_render(nc_));
uint32_t* rgbaret = ncplane_rgba(ncvisual_plane(ncv), 0, 0, -1, -1);
REQUIRE(rgbaret);