mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
PolyfillOnGlyph unit test fix
This commit is contained in:
parent
633ef1f76c
commit
b648868361
@ -39,9 +39,13 @@ TEST_CASE("Fills") {
|
||||
struct ncplane* pfn = ncplane_new(nc_, 4, 4, 0, 0, nullptr);
|
||||
REQUIRE(nullptr != pfn);
|
||||
CHECK(16 == ncplane_polyfill_yx(pfn, 0, 0, &c));
|
||||
CHECK(0 == notcurses_render(nc_));
|
||||
CHECK(0 < ncplane_putc_yx(pfn, 0, 0, &c));
|
||||
// Trying to fill the origin ought now be rejected
|
||||
CHECK(0 > ncplane_polyfill_yx(pfn, 0, 0, &c));
|
||||
CHECK(0 < cell_load(pfn, &c, "/"));
|
||||
CHECK(0 < ncplane_polyfill_yx(pfn, 0, 0, &c));
|
||||
char* ncpc = ncplane_at_yx(pfn, 0, 0, NULL, NULL);
|
||||
CHECK(0 == strcmp(ncpc, "/"));
|
||||
free(ncpc);
|
||||
CHECK(0 == notcurses_render(nc_));
|
||||
CHECK(0 == ncplane_destroy(pfn));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user