mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
rotate unit test: don't depend on size
This commit is contained in:
parent
3a8b0b9716
commit
646b8ba4a5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user