notcurses/tests/input.cpp

16 lines
325 B
C++
Raw Normal View History

2019-12-23 02:47:34 -05:00
#include "main.h"
TEST_CASE("NotcursesInput") {
notcurses_options nopts{};
2019-12-28 18:37:44 -05:00
nopts.suppress_banner = true;
struct notcurses* nc_ = notcurses_init(&nopts, nullptr);
if(!nc_){
return;
}
2019-12-23 02:47:34 -05:00
REQUIRE(0 == notcurses_mouse_enable(nc_));
CHECK(0 == notcurses_mouse_disable(nc_));
2019-12-23 02:47:34 -05:00
CHECK(0 == notcurses_stop(nc_));
2019-12-23 02:47:34 -05:00
}