mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
add simple pixel-rendering unit test
This commit is contained in:
parent
b18682e86c
commit
b2ef9a074b
@ -13,5 +13,20 @@ TEST_CASE("Pixel") {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef NOTCURSES_USE_MULTIMEDIA
|
||||
SUBCASE("PixelRender") {
|
||||
auto ncv = ncvisual_from_file(find_data("worldmap.png"));
|
||||
REQUIRE(ncv);
|
||||
struct ncvisual_options vopts{};
|
||||
vopts.blitter = NCBLIT_PIXEL;
|
||||
auto newn = ncvisual_render(nc_, ncv, &vopts);
|
||||
CHECK(newn);
|
||||
CHECK(0 == notcurses_render(nc_));
|
||||
ncplane_destroy(newn);
|
||||
CHECK(0 == notcurses_render(nc_));
|
||||
ncvisual_destroy(ncv);
|
||||
}
|
||||
#endif
|
||||
|
||||
CHECK(!notcurses_stop(nc_));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user