Reels unit test: REQUIRE tablet plane #1197

pull/1190/head
nick black 4 years ago
parent 2c4566fdb3
commit 0aa060b9f1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -136,8 +136,6 @@ auto main(int argc, const char **argv) -> int {
} }
// if we exited via REQUIRE(), we likely left the terminal in an invalid // if we exited via REQUIRE(), we likely left the terminal in an invalid
// state. go ahead and reset it manually. // state. go ahead and reset it manually.
if(res){ reset_terminal();
reset_terminal();
}
return res; // the result from doctest is propagated here as well return res; // the result from doctest is propagated here as well
} }

@ -327,6 +327,7 @@ TEST_CASE("Reels") {
tabs[n] = ncreel_add(nr, nullptr, nullptr, cbfxn, &order[n]); tabs[n] = ncreel_add(nr, nullptr, nullptr, cbfxn, &order[n]);
REQUIRE(tabs[n]); REQUIRE(tabs[n]);
CHECK(tabs[0] == nr->tablets); CHECK(tabs[0] == nr->tablets);
REQUIRE(nctablet_plane(tabs[n]));
CHECK_EQ(0, notcurses_render(nc_)); CHECK_EQ(0, notcurses_render(nc_));
CHECK(ncreel_validate(nr)); CHECK(ncreel_validate(nr));
} }

Loading…
Cancel
Save