From 0aa060b9f12402e73e3d956360b3bcce34a1971e Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 11 Dec 2020 20:29:48 -0500 Subject: [PATCH] Reels unit test: REQUIRE tablet plane #1197 --- tests/main.cpp | 4 +--- tests/reel.cpp | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/main.cpp b/tests/main.cpp index 8967d14fd..90f26ee24 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -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 // state. go ahead and reset it manually. - if(res){ - reset_terminal(); - } + reset_terminal(); return res; // the result from doctest is propagated here as well } diff --git a/tests/reel.cpp b/tests/reel.cpp index 5532ca01b..61c45073c 100644 --- a/tests/reel.cpp +++ b/tests/reel.cpp @@ -327,6 +327,7 @@ TEST_CASE("Reels") { tabs[n] = ncreel_add(nr, nullptr, nullptr, cbfxn, &order[n]); REQUIRE(tabs[n]); CHECK(tabs[0] == nr->tablets); + REQUIRE(nctablet_plane(tabs[n])); CHECK_EQ(0, notcurses_render(nc_)); CHECK(ncreel_validate(nr)); }