NCPlane tests: reenable GrowPlane #1198

This commit is contained in:
nick black 2020-12-11 20:59:34 -05:00
parent 438e042cdf
commit f3b86230e6
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ static const char* datadir = NOTCURSES_SHARE;
auto testing_notcurses() -> struct notcurses* {
notcurses_options nopts{};
nopts.loglevel = NCLOGLEVEL_ERROR;
nopts.flags = NCOPTION_SUPPRESS_BANNERS | NCOPTION_INHIBIT_SETLOCALE;
nopts.flags = NCOPTION_SUPPRESS_BANNERS;
auto nc = notcurses_init(&nopts, nullptr);
return nc;
}

View File

@ -515,7 +515,7 @@ TEST_CASE("NCPlane") {
maxy += 2;
--x;
--y;
// REQUIRE(0 == ncplane_resize(newp, 1, 1, maxy, maxx, 1, 1, maxy, maxx));
REQUIRE(0 == ncplane_resize(newp, 1, 1, maxy - 1, maxx - 1, 1, 1, maxy, maxx));
// FIXME check dims, pos
}
while(y < dimy){
@ -523,7 +523,7 @@ TEST_CASE("NCPlane") {
if(y){
++y;
}
// REQUIRE(0 == ncplane_resize(newp, 1, 0, maxy, maxx, 1, 0, maxy, maxx));
REQUIRE(0 == ncplane_resize(newp, 1, 0, maxy - 1, maxx, 1, 0, maxy, maxx));
// FIXME check dims, pos
}
while(x < dimx){
@ -531,7 +531,7 @@ TEST_CASE("NCPlane") {
if(x){
++x;
}
// REQUIRE(0 == ncplane_resize(newp, 0, 1, maxy, maxx, 0, 1, maxy, maxx));
REQUIRE(0 == ncplane_resize(newp, 0, 1, maxy, maxx - 1, 0, 1, maxy, maxx));
// FIXME check dims, pos
}
REQUIRE(0 == ncplane_resize(newp, 0, 0, 0, 0, 0, 0, dimy, dimx));