mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
NCPlane tests: reenable GrowPlane #1198
This commit is contained in:
parent
438e042cdf
commit
f3b86230e6
@ -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;
|
||||
}
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user