@ -13,6 +13,13 @@
static const char* datadir = NOTCURSES_SHARE;
auto testing_notcurses() -> struct notcurses* {
notcurses_options nopts{};
nopts.loglevel = NCLOGLEVEL_DEBUG;
auto nc = notcurses_init(&nopts, nullptr);
return nc;
}
auto find_data(const char* datum) -> char* {
std::filesystem::path p = datadir;
p /= datum;
@ -11,6 +11,7 @@
auto find_data(const char* datum) -> char*;
auto enforce_utf8() -> bool;
auto testing_notcurses() -> struct notcurses*;
class TestOptions : public notcurses_options {
public: